Package org.apache.lucene.analysis.util
Class CharArrayMap.EntryIterator
- java.lang.Object
-
- org.apache.lucene.analysis.util.CharArrayMap.EntryIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.util.Map.Entry<java.lang.Object,V>>
- Enclosing class:
- CharArrayMap<V>
public class CharArrayMap.EntryIterator extends java.lang.Object implements java.util.Iterator<java.util.Map.Entry<java.lang.Object,V>>
public iterator class so efficient methods are exposed to users
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
currentValue()
returns the value associated with the last key returnedboolean
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 objectvoid
remove()
V
setValue(V value)
sets the value associated with the last key returned
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<java.util.Map.Entry<java.lang.Object,V>>
-
nextKey
public char[] nextKey()
gets the next key... do not modify the returned char[]
-
nextKeyString
public java.lang.String nextKeyString()
gets the next key as a newly created String object
-
currentValue
public V currentValue()
returns the value associated with the last key returned
-
next
public java.util.Map.Entry<java.lang.Object,V> next()
use nextCharArray() + currentValue() for better efficiency.- Specified by:
next
in interfacejava.util.Iterator<java.util.Map.Entry<java.lang.Object,V>>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<java.util.Map.Entry<java.lang.Object,V>>
-
-