public static class CharIterators.UnmodifiableBidirectionalIterator extends AbstractCharBidirectionalIterator
Modifier and Type | Field and Description |
---|---|
protected CharBidirectionalIterator |
i |
Constructor and Description |
---|
UnmodifiableBidirectionalIterator(CharBidirectionalIterator 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.
|
Character |
previous()
Delegates to the corresponding type-specific method.
|
char |
previousChar()
Delegates to the corresponding generic method.
|
back
remove, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
skip
skip
forEachRemaining, remove
protected final CharBidirectionalIterator i
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 Character next()
AbstractCharIterator
next
in interface Iterator<Character>
next
in class AbstractCharIterator
public Character previous()
AbstractCharBidirectionalIterator
previous
in interface BidirectionalIterator<Character>
previous
in class AbstractCharBidirectionalIterator
ListIterator.previous()
Copyright © 2011–2024. All rights reserved.