public static class CharIterators.UnmodifiableListIterator extends AbstractCharListIterator
Constructor and Description |
---|
CharIterators.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, set
back
remove, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove
back
skip
skip
public CharIterators.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 Character next()
AbstractCharIterator
next
in interface Iterator<Character>
next
in interface ListIterator<Character>
next
in class AbstractCharIterator
public Character previous()
AbstractCharBidirectionalIterator
previous
in interface BidirectionalIterator<Character>
previous
in interface ListIterator<Character>
previous
in class AbstractCharBidirectionalIterator
ListIterator.previous()