public static class ObjectBigListIterators.BigListIteratorListIterator<K> extends AbstractObjectBigListIterator<K>
| Modifier and Type | Method and Description |
|---|---|
void |
add(K ok)
This method just throws an
UnsupportedOperationException. |
int |
back(int n)
This method just iterates the type-specific version of
BidirectionalIterator.previous() for
at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false. |
long |
back(long n)
This method just iterates the type-specific version of
BidirectionalIterator.previous() for
at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false. |
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
K |
next() |
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
K |
previous()
Returns the previous element from the collection.
|
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
void |
remove()
This method just throws an
UnsupportedOperationException. |
void |
set(K ok)
This method just throws an
UnsupportedOperationException. |
int |
skip(int n)
This method just iterates the type-specific version of
Iterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false. |
long |
skip(long n)
This method just iterates the type-specific version of
Iterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false. |
public void set(K ok)
AbstractObjectBigListIteratorUnsupportedOperationException.set in interface ObjectBigListIterator<K>set in class AbstractObjectBigListIterator<K>public void add(K ok)
AbstractObjectBigListIteratorUnsupportedOperationException.add in interface ObjectBigListIterator<K>add in class AbstractObjectBigListIterator<K>public int back(int n)
AbstractObjectBidirectionalIteratorBidirectionalIterator.previous() for
at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.back in interface ObjectBidirectionalIterator<K>back in class AbstractObjectBidirectionalIterator<K>n - the number of elements to skip back.Iterator.next()public long back(long n)
AbstractObjectBigListIteratorBidirectionalIterator.previous() for
at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.back in class AbstractObjectBigListIterator<K>public void remove()
AbstractObjectIteratorUnsupportedOperationException.public int skip(int n)
AbstractObjectIteratorIterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false.skip in interface ObjectIterator<K>skip in class AbstractObjectIterator<K>n - the number of elements to skip.Iterator.next()public long skip(long n)
AbstractObjectBigListIteratorIterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false.skip in interface BigListIterator<K>skip in class AbstractObjectBigListIterator<K>n - the number of elements to skip.public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public K next()
public K previous()
BidirectionalIteratorListIterator.previous()public long nextIndex()
BigListIteratorListIterator.nextIndex()public long previousIndex()
BigListIteratorListIterator.previousIndex()