Package squidpony.squidmath
Class Arrangement.KeyIterator
java.lang.Object
squidpony.squidmath.Arrangement.KeyIterator
- All Implemented Interfaces:
Serializable
,Iterator<K>
- Enclosing class:
- Arrangement<K>
public final class Arrangement.KeyIterator extends Object implements Iterator<K>, 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 Details
-
KeyIterator
public KeyIterator()
-
-
Method Details
-
previous
-
set
-
add
-
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)
-