public class CharArrayMap.EntryIterator
extends java.lang.Object
implements java.util.Iterator<java.util.Map.Entry<java.lang.Object,V>>
Modifier and Type | Field and Description |
---|---|
private boolean |
allowModify |
private int |
lastPos |
private int |
pos |
Modifier | Constructor and Description |
---|---|
private |
EntryIterator(boolean allowModify) |
Modifier and Type | Method and Description |
---|---|
V |
currentValue()
returns the value associated with the last key returned
|
private void |
goNext() |
boolean |
hasNext() |
java.util.Map.Entry<java.lang.Object,V> |
next()
use nextCharArray() + currentValue() for better efficiency.
|
char[] |
nextKey()
gets the next key...
|
java.lang.String |
nextKeyString()
gets the next key as a newly created String object
|
void |
remove() |
V |
setValue(V value)
sets the value associated with the last key returned
|
private int pos
private int lastPos
private final boolean allowModify
private void goNext()
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.util.Map.Entry<java.lang.Object,V>>
public char[] nextKey()
public java.lang.String nextKeyString()
public V currentValue()
public java.util.Map.Entry<java.lang.Object,V> next()
next
in interface java.util.Iterator<java.util.Map.Entry<java.lang.Object,V>>
public void remove()
remove
in interface java.util.Iterator<java.util.Map.Entry<java.lang.Object,V>>