Package org.apache.lucene.analysis
Class CharArrayMap.EntryIterator
java.lang.Object
org.apache.lucene.analysis.CharArrayMap.EntryIterator
- Enclosing class:
- CharArrayMap<V>
public iterator class so efficient methods are exposed to users
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturns the value associated with the last key returnedprivate void
goNext()
boolean
hasNext()
next()
use nextCharArray() + currentValue() for better efficiency.char[]
nextKey()
gets the next key...gets the next key as a newly created String objectvoid
remove()
sets the value associated with the last key returnedMethods 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
-
pos
private int pos -
lastPos
private int lastPos -
allowModify
private final boolean allowModify
-
-
Constructor Details
-
EntryIterator
private EntryIterator(boolean allowModify)
-
-
Method Details
-
goNext
private void goNext() -
hasNext
public boolean hasNext() -
nextKey
public char[] nextKey()gets the next key... do not modify the returned char[] -
nextKeyString
gets the next key as a newly created String object -
currentValue
returns the value associated with the last key returned -
setValue
sets the value associated with the last key returned -
next
use nextCharArray() + currentValue() for better efficiency. -
remove
public void remove()
-