Package squidpony.squidmath
Class IntDoubleOrderedMap.KeyIterator
java.lang.Object
squidpony.squidmath.IntDoubleOrderedMap.KeyIterator
- All Implemented Interfaces:
Serializable,Iterator<Integer>
- Enclosing class:
- IntDoubleOrderedMap
public final class IntDoubleOrderedMap.KeyIterator extends Object implements Iterator<Integer>, Serializable
An iterator on keys.
We simply override the ListIterator.next()/ListIterator.previous() methods (and possibly their type-specific counterparts) so that they return keys
instead of entries.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description KeyIterator() -
Method Summary
Modifier and Type Method Description voidadd(Integer k)intback(int n)booleanhasNext()booleanhasPrevious()Integernext()intnextEntry()intnextIndex()intnextInt()Integerprevious()intpreviousEntry()intpreviousIndex()intpreviousInt()voidremove()voidset(Integer k)intskip(int n)
-
Constructor Details
-
KeyIterator
public KeyIterator()
-
-
Method Details
-
previous
-
previousInt
-
set
-
add
-
next
-
nextInt
-
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)
-