Package io.netty.util.collection
Class ShortObjectHashMap.PrimitiveIterator
- java.lang.Object
-
- io.netty.util.collection.ShortObjectHashMap.PrimitiveIterator
-
- All Implemented Interfaces:
ShortObjectMap.PrimitiveEntry<V>,java.util.Iterator<ShortObjectMap.PrimitiveEntry<V>>
- Enclosing class:
- ShortObjectHashMap<V>
private final class ShortObjectHashMap.PrimitiveIterator extends java.lang.Object implements java.util.Iterator<ShortObjectMap.PrimitiveEntry<V>>, ShortObjectMap.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()shortkey()Gets the key for this entry.ShortObjectMap.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<ShortObjectMap.PrimitiveEntry<V>>
-
next
public ShortObjectMap.PrimitiveEntry<V> next()
- Specified by:
nextin interfacejava.util.Iterator<ShortObjectMap.PrimitiveEntry<V>>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<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
public V value()
Description copied from interface:ShortObjectMap.PrimitiveEntryGets the value for this entry.- Specified by:
valuein interfaceShortObjectMap.PrimitiveEntry<V>
-
setValue
public void setValue(V value)
Description copied from interface:ShortObjectMap.PrimitiveEntrySets the value for this entry.- Specified by:
setValuein interfaceShortObjectMap.PrimitiveEntry<V>
-
-