java.util
Class LinkedHashMap.LinkedHashIterator<E,KT,VT>
java.lang.Object
java.util.HashMap.HashMapIterator<E,KT,VT>
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>
|
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkedHashMap.LinkedHashIterator
LinkedHashMap.LinkedHashIterator(MapEntry.Type<E,KT,VT> value,
LinkedHashMap<KT,VT> hm)
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>
Please submit a feedback, bug or feature