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 int
entryIndex
private int
nextIndex
private int
prevIndex
-
Constructor Summary
Constructors Modifier Constructor Description private
PrimitiveIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
byte
key()
Gets the key for this entry.ByteObjectMap.PrimitiveEntry<V>
next()
void
remove()
private void
scanNext()
void
setValue(V value)
Sets the value for this entry.V
value()
Gets the value for this entry.
-
-
-
Method Detail
-
scanNext
private void scanNext()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<ByteObjectMap.PrimitiveEntry<V>>
-
next
public ByteObjectMap.PrimitiveEntry<V> next()
- Specified by:
next
in interfacejava.util.Iterator<ByteObjectMap.PrimitiveEntry<V>>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<ByteObjectMap.PrimitiveEntry<V>>
-
key
public byte key()
Description copied from interface:ByteObjectMap.PrimitiveEntry
Gets the key for this entry.- Specified by:
key
in interfaceByteObjectMap.PrimitiveEntry<V>
-
value
public V value()
Description copied from interface:ByteObjectMap.PrimitiveEntry
Gets the value for this entry.- Specified by:
value
in interfaceByteObjectMap.PrimitiveEntry<V>
-
setValue
public void setValue(V value)
Description copied from interface:ByteObjectMap.PrimitiveEntry
Sets the value for this entry.- Specified by:
setValue
in interfaceByteObjectMap.PrimitiveEntry<V>
-
-