public static class CharBigListIterators.BigListIteratorListIterator extends AbstractCharBigListIterator
| Modifier and Type | Method and Description |
|---|---|
void |
add(char ok)
Inserts the specified element into the list (optional operation).
|
int |
back(int n)
Moves back for the given number of elements.
|
long |
back(long n)
This implemntation iterates the type-specific version of
AbstractCharBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false. |
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
char |
nextChar()
Returns the next element as a primitive type.
|
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
char |
previousChar()
This implementation delegates to
AbstractCharBidirectionalIterator.previous(). |
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
void |
remove()
This implementation always throws an
UnsupportedOperationException. |
void |
set(char ok)
Replaces the last element returned by
CharIterator.next() or
CharBidirectionalIterator.previous() with the specified element (optional operation). |
int |
skip(int n)
Skips the given number of elements.
|
long |
skip(long n)
Skips the given number of elements.
|
add, setpreviousnextequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreviousnextforEachRemainingpublic void set(char ok)
AbstractCharBigListIteratorCharIterator.next() or
CharBidirectionalIterator.previous() with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface CharBigListIteratorset in class AbstractCharBigListIteratorListIterator.set(Object)public void add(char ok)
AbstractCharBigListIterator
This implementation always throws an
UnsupportedOperationException.
add in interface CharBigListIteratoradd in class AbstractCharBigListIteratorListIterator.add(Object)public int back(int n)
AbstractCharBidirectionalIterator
The effect of this call is exactly the same as that of calling
CharBidirectionalIterator.previous() for n times (possibly stopping if
BidirectionalIterator.hasPrevious() becomes false).
This implemntation iterates the type-specific version of
AbstractCharBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in interface CharBidirectionalIteratorback in interface ObjectBidirectionalIterator<Character>back in class AbstractCharBidirectionalIteratorn - the number of elements to skip backwards.AbstractCharBidirectionalIterator.previous()public long back(long n)
AbstractCharBigListIterator
This implemntation iterates the type-specific version of
AbstractCharBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in class AbstractCharBigListIteratorn - the number of elements to skip backwards.public void remove()
AbstractCharIterator
This implementation always throws an
UnsupportedOperationException.
remove in interface Iterator<Character>remove in class AbstractCharIteratorpublic int skip(int n)
AbstractCharIterator
The effect of this call is exactly the same as that of calling
CharIterator.next() for n times (possibly stopping if
Iterator.hasNext() becomes false).
This implementaion iterates the type-specific version of AbstractCharIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface CharIteratorskip in interface ObjectIterator<Character>skip in class AbstractCharIteratorn - the number of elements to skip.Iterator.next()public long skip(long n)
AbstractCharBigListIteratorThe effect of this call is exactly the same as that of
calling Iterator.next() for n times (possibly stopping
if Iterator.hasNext() becomes false).
This implementaion iterates the type-specific version of AbstractCharIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface BigListIterator<Character>skip in class AbstractCharBigListIteratorn - the number of elements to skip.public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public char nextChar()
AbstractCharIteratorThis implementation delegates to the corresponding generic method.
nextChar in interface CharIteratornextChar in class AbstractCharIteratorIterator.next()public char previousChar()
AbstractCharBidirectionalIterator
This implementation delegates to AbstractCharBidirectionalIterator.previous().
previousChar in interface CharBidirectionalIteratorpreviousChar in class AbstractCharBidirectionalIteratorListIterator.previous()public long nextIndex()
BigListIteratorListIterator.nextIndex()public long previousIndex()
BigListIteratorListIterator.previousIndex()