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.
|
java.lang.Character |
next()
Delegates to the corresponding type-specific method.
|
char |
nextChar()
Delegates to the corresponding generic method.
|
int |
nextIndex() |
java.lang.Character |
previous()
Delegates to the corresponding type-specific method.
|
char |
previousChar()
Delegates to the corresponding generic method.
|
int |
previousIndex() |
add, add, set, set
back
remove, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
back
skip
skip
public UnmodifiableListIterator(CharListIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIterator
ListIterator.hasPrevious()
public char nextChar()
AbstractCharIterator
nextChar
in interface CharIterator
nextChar
in class AbstractCharIterator
Iterator.next()
public char previousChar()
AbstractCharBidirectionalIterator
previousChar
in interface CharBidirectionalIterator
previousChar
in class AbstractCharBidirectionalIterator
ListIterator.previous()
public int nextIndex()
public int previousIndex()
public java.lang.Character next()
AbstractCharIterator
next
in interface java.util.Iterator<java.lang.Character>
next
in interface java.util.ListIterator<java.lang.Character>
next
in class AbstractCharIterator
public java.lang.Character previous()
AbstractCharBidirectionalIterator
previous
in interface BidirectionalIterator<java.lang.Character>
previous
in interface java.util.ListIterator<java.lang.Character>
previous
in class AbstractCharBidirectionalIterator
ListIterator.previous()