Package io.netty.util.collection
Class ByteObjectHashMap.PrimitiveIterator
- java.lang.Object
-
- io.netty.util.collection.ByteObjectHashMap.PrimitiveIterator
-
- All Implemented Interfaces:
ByteObjectMap.PrimitiveEntry<V>,java.util.Iterator<ByteObjectMap.PrimitiveEntry<V>>
- Enclosing class:
- ByteObjectHashMap<V>
private final class ByteObjectHashMap.PrimitiveIterator extends java.lang.Object implements java.util.Iterator<ByteObjectMap.PrimitiveEntry<V>>, ByteObjectMap.PrimitiveEntry<V>
Iterator over primitive entries. Entry key/values are overwritten by each call tonext().
-
-
Field Summary
Fields Modifier and Type Field Description private intentryIndexprivate intnextIndexprivate intprevIndex
-
Constructor Summary
Constructors Modifier Constructor Description privatePrimitiveIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()bytekey()Gets the key for this entry.ByteObjectMap.PrimitiveEntry<V>next()voidremove()private voidscanNext()voidsetValue(V value)Sets the value for this entry.Vvalue()Gets the value for this entry.
-
-
-
Method Detail
-
scanNext
private void scanNext()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<ByteObjectMap.PrimitiveEntry<V>>
-
next
public ByteObjectMap.PrimitiveEntry<V> next()
- Specified by:
nextin interfacejava.util.Iterator<ByteObjectMap.PrimitiveEntry<V>>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<ByteObjectMap.PrimitiveEntry<V>>
-
key
public byte key()
Description copied from interface:ByteObjectMap.PrimitiveEntryGets the key for this entry.- Specified by:
keyin interfaceByteObjectMap.PrimitiveEntry<V>
-
value
public V value()
Description copied from interface:ByteObjectMap.PrimitiveEntryGets the value for this entry.- Specified by:
valuein interfaceByteObjectMap.PrimitiveEntry<V>
-
setValue
public void setValue(V value)
Description copied from interface:ByteObjectMap.PrimitiveEntrySets the value for this entry.- Specified by:
setValuein interfaceByteObjectMap.PrimitiveEntry<V>
-
-