org.apache.solr.util
Class CharArrayMap.EntryIterator

java.lang.Object
  extended by org.apache.solr.util.CharArrayMap.EntryIterator
All Implemented Interfaces:
java.util.Iterator<java.util.Map.Entry<java.lang.String,V>>
Enclosing class:
CharArrayMap<V>

public class CharArrayMap.EntryIterator
extends java.lang.Object
implements java.util.Iterator<java.util.Map.Entry<java.lang.String,V>>

public iterator class so efficient methods are exposed to users


Method Summary
 V currentValue()
          returns the value associated with the last key returned
 boolean hasNext()
           
 java.util.Map.Entry<java.lang.String,V> next()
          Returns an Entry object created on the fly...
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<java.util.Map.Entry<java.lang.String,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


setValue

public V setValue(V value)
sets the value associated with the last key returned


next

public java.util.Map.Entry<java.lang.String,V> next()
Returns an Entry object created on the fly... use nextCharArray() + currentValie() for better efficiency.

Specified by:
next in interface java.util.Iterator<java.util.Map.Entry<java.lang.String,V>>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<java.util.Map.Entry<java.lang.String,V>>


Copyright © 2006-2010 Hibernate. All Rights Reserved.