public static class ShortBigListIterators.BigListIteratorListIterator extends AbstractShortBigListIterator
| Modifier and Type | Method and Description |
|---|---|
void |
add(short 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
AbstractShortBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false. |
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
short |
nextShort()
Returns the next element as a primitive type.
|
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
short |
previousShort()
This implementation delegates to
AbstractShortBidirectionalIterator.previous(). |
void |
remove()
This implementation always throws an
UnsupportedOperationException. |
void |
set(short ok)
Replaces the last element returned by
ShortIterator.next() or
ShortBidirectionalIterator.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(short ok)
AbstractShortBigListIteratorShortIterator.next() or
ShortBidirectionalIterator.previous() with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface ShortBigListIteratorset in class AbstractShortBigListIteratorListIterator.set(Object)public void add(short ok)
AbstractShortBigListIterator
This implementation always throws an
UnsupportedOperationException.
add in interface ShortBigListIteratoradd in class AbstractShortBigListIteratorListIterator.add(Object)public int back(int n)
AbstractShortBidirectionalIterator
The effect of this call is exactly the same as that of calling
ShortBidirectionalIterator.previous() for n times (possibly stopping if
BidirectionalIterator.hasPrevious() becomes false).
This implemntation iterates the type-specific version of
AbstractShortBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in interface ObjectBidirectionalIterator<Short>back in interface ShortBidirectionalIteratorback in class AbstractShortBidirectionalIteratorn - the number of elements to skip backwards.AbstractShortBidirectionalIterator.previous()public long back(long n)
AbstractShortBigListIterator
This implemntation iterates the type-specific version of
AbstractShortBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in class AbstractShortBigListIteratorn - the number of elements to skip backwards.public void remove()
AbstractShortIterator
This implementation always throws an
UnsupportedOperationException.
remove in interface Iterator<Short>remove in class AbstractShortIteratorpublic int skip(int n)
AbstractShortIterator
The effect of this call is exactly the same as that of calling
ShortIterator.next() for n times (possibly stopping if
Iterator.hasNext() becomes false).
This implementaion iterates the type-specific version of AbstractShortIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface ObjectIterator<Short>skip in interface ShortIteratorskip in class AbstractShortIteratorn - the number of elements to skip.Iterator.next()public long skip(long n)
AbstractShortBigListIteratorThe 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 AbstractShortIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface BigListIterator<Short>skip in class AbstractShortBigListIteratorn - the number of elements to skip.public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public short nextShort()
AbstractShortIteratorThis implementation delegates to the corresponding generic method.
nextShort in interface ShortIteratornextShort in class AbstractShortIteratorIterator.next()public short previousShort()
AbstractShortBidirectionalIterator
This implementation delegates to AbstractShortBidirectionalIterator.previous().
previousShort in interface ShortBidirectionalIteratorpreviousShort in class AbstractShortBidirectionalIteratorListIterator.previous()public long nextIndex()
BigListIteratorListIterator.nextIndex()public long previousIndex()
BigListIteratorListIterator.previousIndex()