public static class CharIterators.UnmodifiableListIterator extends Object implements CharListIterator
| Constructor and Description |
|---|
UnmodifiableListIterator(CharListIterator 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.
|
int |
nextIndex() |
char |
previousChar()
Returns the previous element as a primitive type.
|
int |
previousIndex() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, next, previous, remove, set, setback, skipforEachRemaining, forEachRemainingpublic UnmodifiableListIterator(CharListIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Character>hasPrevious in interface ListIterator<Character>ListIterator.hasPrevious()public char nextChar()
CharIteratornextChar in interface CharIteratorIterator.next()public char previousChar()
CharBidirectionalIteratorpreviousChar in interface CharBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex in interface ListIterator<Character>public int previousIndex()
previousIndex in interface ListIterator<Character>