protected static class AbstractShort2ObjectSortedMap.KeySetIterator<V> extends Object implements ShortBidirectionalIterator
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<Short2ObjectMap.Entry<V>> |
i |
| Constructor and Description |
|---|
KeySetIterator(ObjectBidirectionalIterator<Short2ObjectMap.Entry<V>> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
short |
nextShort()
Returns the next element as a primitive type.
|
short |
previousShort()
Returns the previous element as a primitive type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, previous, skipforEachRemaining, forEachRemaining, nextprotected final ObjectBidirectionalIterator<Short2ObjectMap.Entry<V>> i
public KeySetIterator(ObjectBidirectionalIterator<Short2ObjectMap.Entry<V>> i)
public short nextShort()
ShortIteratornextShort in interface ShortIteratorIterator.next()public short previousShort()
ShortBidirectionalIteratorpreviousShort in interface ShortBidirectionalIteratorListIterator.previous()public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Short>ListIterator.hasPrevious()Copyright © 2020. All rights reserved.