Package squidpony.squidmath
Class IntDoubleOrderedMap.ValueIterator
java.lang.Object
squidpony.squidmath.IntDoubleOrderedMap.ValueIterator
- All Implemented Interfaces:
Serializable
,Iterator<Double>
,ListIterator<Double>
- Enclosing class:
- IntDoubleOrderedMap
public final class IntDoubleOrderedMap.ValueIterator extends Object implements ListIterator<Double>, 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<Double>
-
set
- Specified by:
set
in interfaceListIterator<Double>
-
add
- Specified by:
add
in interfaceListIterator<Double>
-
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)
-