Package io.netty.util.collection
Class CharObjectHashMap.PrimitiveIterator
java.lang.Object
io.netty.util.collection.CharObjectHashMap.PrimitiveIterator
- All Implemented Interfaces:
CharObjectMap.PrimitiveEntry<V>
,Iterator<CharObjectMap.PrimitiveEntry<V>>
- Enclosing class:
CharObjectHashMap<V>
private final class CharObjectHashMap.PrimitiveIterator
extends Object
implements Iterator<CharObjectMap.PrimitiveEntry<V>>, CharObjectMap.PrimitiveEntry<V>
Iterator over primitive entries. Entry key/values are overwritten by each call to
next()
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private int
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.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:
hasNext
in interfaceIterator<CharObjectMap.PrimitiveEntry<V>>
-
next
- Specified by:
next
in interfaceIterator<CharObjectMap.PrimitiveEntry<V>>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<CharObjectMap.PrimitiveEntry<V>>
-
key
public char key()Description copied from interface:CharObjectMap.PrimitiveEntry
Gets the key for this entry.- Specified by:
key
in interfaceCharObjectMap.PrimitiveEntry<V>
-
value
Description copied from interface:CharObjectMap.PrimitiveEntry
Gets the value for this entry.- Specified by:
value
in interfaceCharObjectMap.PrimitiveEntry<V>
-
setValue
Description copied from interface:CharObjectMap.PrimitiveEntry
Sets the value for this entry.- Specified by:
setValue
in interfaceCharObjectMap.PrimitiveEntry<V>
-