public final class IntDoubleOrderedMap.KeyIterator
extends java.lang.Object
implements java.util.Iterator<java.lang.Integer>, java.io.Serializable
We simply override the ListIterator.next()
/ListIterator.previous()
methods (and possibly their type-specific counterparts) so that they return keys
instead of entries.
Constructor and Description |
---|
KeyIterator() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Integer k) |
java.lang.Integer |
next() |
int |
nextInt() |
java.lang.Integer |
previous() |
int |
previousInt() |
void |
remove() |
void |
set(java.lang.Integer k) |
public java.lang.Integer previous()
public int previousInt()
public void set(java.lang.Integer k)
public void add(java.lang.Integer k)
public java.lang.Integer next()
next
in interface java.util.Iterator<java.lang.Integer>
public int nextInt()
public void remove()
remove
in interface java.util.Iterator<java.lang.Integer>
Copyright © Eben Howard 2012–2022. All rights reserved.