Class ShortObjectHashMap.PrimitiveIterator
java.lang.Object
io.netty.util.collection.ShortObjectHashMap.PrimitiveIterator
- All Implemented Interfaces:
ShortObjectMap.PrimitiveEntry<V>, Iterator<ShortObjectMap.PrimitiveEntry<V>>
- Enclosing class:
ShortObjectHashMap<V>
private final class ShortObjectHashMap.PrimitiveIterator
extends Object
implements Iterator<ShortObjectMap.PrimitiveEntry<V>>, ShortObjectMap.PrimitiveEntry<V>
Iterator over primitive entries. Entry key/values are overwritten by each call to
next().-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
prevIndex
private int prevIndex -
nextIndex
private int nextIndex -
entryIndex
private int entryIndex
-
-
Constructor Details
-
PrimitiveIterator
private PrimitiveIterator()
-
-
Method Details
-
scanNext
private void scanNext() -
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<ShortObjectMap.PrimitiveEntry<V>>
-
next
- Specified by:
nextin interfaceIterator<ShortObjectMap.PrimitiveEntry<V>>
-
remove
public void remove()- Specified by:
removein interfaceIterator<ShortObjectMap.PrimitiveEntry<V>>
-
key
public short key()Description copied from interface:ShortObjectMap.PrimitiveEntryGets the key for this entry.- Specified by:
keyin interfaceShortObjectMap.PrimitiveEntry<V>
-
value
Description copied from interface:ShortObjectMap.PrimitiveEntryGets the value for this entry.- Specified by:
valuein interfaceShortObjectMap.PrimitiveEntry<V>
-
setValue
Description copied from interface:ShortObjectMap.PrimitiveEntrySets the value for this entry.- Specified by:
setValuein interfaceShortObjectMap.PrimitiveEntry<V>
-