public static class CharIterators.UnmodifiableListIterator extends AbstractCharListIterator
| Constructor and Description |
|---|
UnmodifiableListIterator(CharListIterator 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.
|
int |
nextIndex() |
Character |
previous()
Delegates to the corresponding type-specific method.
|
char |
previousChar()
Delegates to the corresponding generic method.
|
int |
previousIndex() |
add, add, set, setbackremove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremovebackskipskipforEachRemainingpublic UnmodifiableListIterator(CharListIterator 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 int nextIndex()
public int previousIndex()
public Character next()
AbstractCharIteratornext in interface Iterator<Character>next in interface ListIterator<Character>next in class AbstractCharIteratorpublic Character previous()
AbstractCharBidirectionalIteratorprevious in interface BidirectionalIterator<Character>previous in interface ListIterator<Character>previous in class AbstractCharBidirectionalIteratorListIterator.previous()