Package org.apache.lucene.analysis.util
Class CharArrayMap.EntryIterator
java.lang.Object
org.apache.lucene.analysis.util.CharArrayMap.EntryIterator
- Enclosing class:
CharArrayMap<V>
public iterator class so efficient methods are exposed to users
-
Method Summary
Modifier and TypeMethodDescriptionreturns the value associated with the last key returnedbooleanhasNext()next()use nextCharArray() + currentValue() for better efficiency.char[]nextKey()gets the next key...gets the next key as a newly created String objectvoidremove()sets the value associated with the last key returnedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
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()
-