Package squidpony.squidmath
Class IntIntOrderedMap.ValueIterator
java.lang.Object
squidpony.squidmath.IntIntOrderedMap.ValueIterator
- All Implemented Interfaces:
Serializable
,Iterator<Integer>
,ListIterator<Integer>
- Enclosing class:
- IntIntOrderedMap
public final class IntIntOrderedMap.ValueIterator extends Object implements ListIterator<Integer>, Serializable
An iterator on values.
We simply override the ListIterator.next()
/ListIterator.previous()
methods (and possibly their type-specific counterparts) so that they return values
instead of entries.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ValueIterator()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, nextIndex, previousIndex
-
Constructor Details
-
ValueIterator
public ValueIterator()
-
-
Method Details
-
previous
- Specified by:
previous
in interfaceListIterator<Integer>
-
set
- Specified by:
set
in interfaceListIterator<Integer>
-
add
- Specified by:
add
in interfaceListIterator<Integer>
-
next
-
remove
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious() -
nextIndex
public int nextIndex() -
previousIndex
public int previousIndex() -
nextEntry
public int nextEntry() -
previousEntry
public int previousEntry() -
skip
public int skip(int n) -
back
public int back(int n)
-