public static class CharIterators.UnmodifiableBidirectionalIterator extends AbstractCharBidirectionalIterator
| Constructor and Description |
|---|
UnmodifiableBidirectionalIterator(CharBidirectionalIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
Character |
next()
Delegates to the corresponding type-specific method.
|
char |
nextChar()
Delegates to the corresponding generic method.
|
Character |
previous()
Delegates to the corresponding type-specific method.
|
char |
previousChar()
Delegates to the corresponding generic method.
|
backremove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitskipskipforEachRemaining, removepublic UnmodifiableBidirectionalIterator(CharBidirectionalIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public char nextChar()
AbstractCharIteratornextChar in interface CharIteratornextChar in class AbstractCharIteratorIterator.next()public char previousChar()
AbstractCharBidirectionalIteratorpreviousChar in interface CharBidirectionalIteratorpreviousChar in class AbstractCharBidirectionalIteratorListIterator.previous()public Character next()
AbstractCharIteratornext in interface Iterator<Character>next in class AbstractCharIteratorpublic Character previous()
AbstractCharBidirectionalIteratorprevious in interface BidirectionalIterator<Character>previous in class AbstractCharBidirectionalIteratorListIterator.previous()