protected static class AbstractFloat2FloatSortedMap.KeySetIterator extends Object implements FloatBidirectionalIterator
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<Float2FloatMap.Entry> |
i |
| Constructor and Description |
|---|
KeySetIterator(ObjectBidirectionalIterator<Float2FloatMap.Entry> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
float |
nextFloat()
Returns the next element as a primitive type.
|
float |
previousFloat()
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<Float2FloatMap.Entry> i
public KeySetIterator(ObjectBidirectionalIterator<Float2FloatMap.Entry> i)
public float nextFloat()
FloatIteratornextFloat in interface FloatIteratorIterator.next()public float previousFloat()
FloatBidirectionalIteratorpreviousFloat in interface FloatBidirectionalIteratorListIterator.previous()public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Float>ListIterator.hasPrevious()Copyright © 2020. All rights reserved.