public static class ObjectBigListIterators.BigListIteratorListIterator<K> extends AbstractObjectBigListIterator<K>
| Modifier and Type | Method and Description |
|---|---|
void |
add(K 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
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 implementation always throws an
UnsupportedOperationException. |
void |
set(K ok)
Replaces the last element returned by
Iterator.next() or
BidirectionalIterator.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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic void set(K ok)
AbstractObjectBigListIteratorIterator.next() or
BidirectionalIterator.previous() with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface ObjectBigListIterator<K>set in class AbstractObjectBigListIterator<K>ListIterator.set(Object)public void add(K ok)
AbstractObjectBigListIterator
This implementation always throws an
UnsupportedOperationException.
add in interface ObjectBigListIterator<K>add in class AbstractObjectBigListIterator<K>ListIterator.add(Object)public int back(int n)
AbstractObjectBidirectionalIterator
The effect of this call is exactly the same as that of calling
BidirectionalIterator.previous() for n times (possibly stopping if
BidirectionalIterator.hasPrevious() becomes false).
This implemntation iterates the type-specific version of
BidirectionalIterator.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 backwards.BidirectionalIterator.previous()public long back(long n)
AbstractObjectBigListIterator
This implemntation iterates the type-specific version of
BidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in class AbstractObjectBigListIterator<K>n - the number of elements to skip backwards.public void remove()
AbstractObjectIterator
This implementation always throws an
UnsupportedOperationException.
public int skip(int n)
AbstractObjectIterator
The 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 Iterator.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)
AbstractObjectBigListIteratorThe 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 Iterator.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()