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