protected static class AbstractInt2ObjectSortedMap.KeySetIterator<V> extends AbstractIntBidirectionalIterator
To provide an iterator on keys, just create an instance of this class using the corresponding iterator on entries.
| Modifier and Type | Field and Description |
|---|---|
protected ObjectBidirectionalIterator<Map.Entry<Integer,V>> |
i |
| Constructor and Description |
|---|
KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Integer,V>> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
int |
nextInt()
Delegates to the corresponding generic method.
|
int |
previousInt()
Delegates to the corresponding generic method.
|
back, previousnext, remove, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitskipskipforEachRemaining, next, removeprotected final ObjectBidirectionalIterator<Map.Entry<Integer,V>> i
public KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Integer,V>> i)
public int nextInt()
AbstractIntIteratornextInt in interface IntIteratornextInt in class AbstractIntIteratorIterator.next()public int previousInt()
AbstractIntBidirectionalIteratorpreviousInt in interface IntBidirectionalIteratorpreviousInt in class AbstractIntBidirectionalIteratorListIterator.previous()public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()Copyright © 2016. All rights reserved.