Build 1.0_r1(from source)

java.util
Class LinkedHashMap.LinkedHashIterator<E,KT,VT>

java.lang.Object
  extended by java.util.HashMap.HashMapIterator<E,KT,VT>
      extended by java.util.LinkedHashMap.LinkedHashIterator<E,KT,VT>
All Implemented Interfaces:
Iterator<E>
Enclosing class:
LinkedHashMap<K,V>

static final class LinkedHashMap.LinkedHashIterator<E,KT,VT>
extends HashMap.HashMapIterator<E,KT,VT>


Field Summary
 
Fields inherited from class java.util.HashMap.HashMapIterator
associatedMap, canRemove, entry, expectedModCount, lastEntry, type
 
Constructor Summary
LinkedHashMap.LinkedHashIterator(MapEntry.Type<E,KT,VT> value, LinkedHashMap<KT,VT> hm)
           
 
Method Summary
 boolean hasNext()
          Returns if there are more elements to iterate.
 E next()
          Returns the next object in the iteration.
 void remove()
          Removes the last object returned by next from the collection.
 
Methods inherited from class java.util.HashMap.HashMapIterator
checkConcurrentMod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedHashMap.LinkedHashIterator

LinkedHashMap.LinkedHashIterator(MapEntry.Type<E,KT,VT> value,
                                 LinkedHashMap<KT,VT> hm)
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: Iterator
Returns if there are more elements to iterate.

Specified by:
hasNext in interface Iterator<E>
Overrides:
hasNext in class HashMap.HashMapIterator<E,KT,VT>
Returns:
true if there are more elements, false otherwise
See Also:
Iterator.next()

next

public E next()
Description copied from interface: Iterator
Returns the next object in the iteration.

Specified by:
next in interface Iterator<E>
Overrides:
next in class HashMap.HashMapIterator<E,KT,VT>
Returns:
the next object
See Also:
Iterator.hasNext()

remove

public void remove()
Description copied from interface: Iterator
Removes the last object returned by next from the collection.

Specified by:
remove in interface Iterator<E>
Overrides:
remove in class HashMap.HashMapIterator<E,KT,VT>

Build 1.0_r1(from source)

Please submit a feedback, bug or feature