protected static class AbstractByte2BooleanSortedMap.KeySetIterator extends Object implements ByteBidirectionalIterator
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<Byte2BooleanMap.Entry> |
i |
| Constructor and Description |
|---|
KeySetIterator(ObjectBidirectionalIterator<Byte2BooleanMap.Entry> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
byte |
nextByte()
Returns the next element as a primitive type.
|
byte |
previousByte()
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<Byte2BooleanMap.Entry> i
public KeySetIterator(ObjectBidirectionalIterator<Byte2BooleanMap.Entry> i)
public byte nextByte()
ByteIteratornextByte in interface ByteIteratorIterator.next()public byte previousByte()
ByteBidirectionalIteratorpreviousByte in interface ByteBidirectionalIteratorListIterator.previous()public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Byte>ListIterator.hasPrevious()Copyright © 2020. All rights reserved.