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.
|
java.lang.Character |
next()
Delegates to the corresponding type-specific method.
|
char |
nextChar()
Delegates to the corresponding generic method.
|
java.lang.Character |
previous()
Delegates to the corresponding type-specific method.
|
char |
previousChar()
Delegates to the corresponding generic method.
|
back
remove, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
skip
skip
public UnmodifiableBidirectionalIterator(CharBidirectionalIterator 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 java.lang.Character next()
AbstractCharIterator
next
in interface java.util.Iterator<java.lang.Character>
next
in class AbstractCharIterator
public java.lang.Character previous()
AbstractCharBidirectionalIterator
previous
in interface BidirectionalIterator<java.lang.Character>
previous
in class AbstractCharBidirectionalIterator
ListIterator.previous()