public interface CharBidirectionalIterator extends CharIterator, ObjectBidirectionalIterator<java.lang.Character>
ObjectBidirectionalIterator to reduce (un)boxing| Modifier and Type | Method and Description |
|---|---|
default int |
back(int amount)
Reverses the Given amount of elements if possible.
|
boolean |
hasPrevious()
Returns true if the Iterator has a Previous element
|
default java.lang.Character |
previous()
Deprecated.
Please use the corresponding type-specific function instead.
|
char |
previousChar()
Returns the Previous element of the iterator.
|
default int |
skip(int amount)
Skips the Given amount of elements if possible.
|
forEachRemaining, forEachRemaining, forEachRemaining, next, nextCharforEachRemainingboolean hasPrevious()
hasPrevious in interface ObjectBidirectionalIterator<java.lang.Character>char previousChar()
java.util.NoSuchElementException - if the iteration has no more elements@Deprecated default java.lang.Character previous()
This default implementation delegates to the corresponding type-specific function.
previous in interface ObjectBidirectionalIterator<java.lang.Character>default int skip(int amount)
skip in interface CharIteratorskip in interface ObjectIterator<java.lang.Character>amount - the amount of elements that should be skippeddefault int back(int amount)
back in interface ObjectBidirectionalIterator<java.lang.Character>amount - the amount of elements that should be reversed