protected static class AbstractChar2IntSortedMap.KeySetIterator extends Object implements CharBidirectionalIterator
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<Char2IntMap.Entry> |
i |
| Constructor and Description |
|---|
KeySetIterator(ObjectBidirectionalIterator<Char2IntMap.Entry> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
char |
nextChar()
Returns the next element as a primitive type.
|
char |
previousChar()
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<Char2IntMap.Entry> i
public KeySetIterator(ObjectBidirectionalIterator<Char2IntMap.Entry> i)
public char nextChar()
CharIteratornextChar in interface CharIteratorIterator.next()public char previousChar()
CharBidirectionalIteratorpreviousChar in interface CharBidirectionalIteratorListIterator.previous()public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Character>ListIterator.hasPrevious()Copyright © 2020. All rights reserved.