Package eu.simuline.util
Class ListMap.XIterator
- java.lang.Object
-
- eu.simuline.util.ListMap.XIterator
-
- Direct Known Subclasses:
ListMap.EntriesIterator,ListMap.KeysIterator,ListMap.ValuesIterator
private abstract class ListMap.XIterator extends Object
Common superclass of iterators on key set, value collection and entries set providing all methods butIterator.next(). Implementation is based on aListIterator.
-
-
Field Summary
Fields Modifier and Type Field Description protected ListIterator<K>lIterAn iterator over the list view of the key set of the enclosingListMap.
-
Constructor Summary
Constructors Constructor Description XIterator()Creates a pre-iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Returns whether the iterators based on this class has a next value.voidremove()Removes from the underlying collection the last element returned by the iterator based on this class.
-
-
-
Field Detail
-
lIter
protected final ListIterator<K> lIter
An iterator over the list view of the key set of the enclosingListMap.- See Also:
ListMap.keys,ListSet.getList()
-
-
Constructor Detail
-
XIterator
XIterator()
Creates a pre-iterator.- See Also:
ListMap.keys,ListSet.getList()
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns whether the iterators based on this class has a next value.- See Also:
Iterator.hasNext()
-
remove
public void remove()
Removes from the underlying collection the last element returned by the iterator based on this class.- See Also:
Iterator.remove()
-
-