protected static class AbstractReference2LongSortedMap.KeySetIterator<K> extends Object implements ObjectBidirectionalIterator<K>
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<Reference2LongMap.Entry<K>> |
i |
| Constructor and Description |
|---|
KeySetIterator(ObjectBidirectionalIterator<Reference2LongMap.Entry<K>> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
K |
next() |
K |
previous()
Returns the previous element from the collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, skipforEachRemaining, removeprotected final ObjectBidirectionalIterator<Reference2LongMap.Entry<K>> i
public KeySetIterator(ObjectBidirectionalIterator<Reference2LongMap.Entry<K>> i)
public K previous()
BidirectionalIteratorprevious in interface BidirectionalIterator<K>ListIterator.previous()public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<K>ListIterator.hasPrevious()Copyright © 2020. All rights reserved.