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)
AbstractObjectBigListIterator
UnsupportedOperationException
.set
in interface ObjectBigListIterator<K>
set
in class AbstractObjectBigListIterator<K>
public void add(K ok)
AbstractObjectBigListIterator
UnsupportedOperationException
.add
in interface ObjectBigListIterator<K>
add
in class AbstractObjectBigListIterator<K>
public int back(int n)
AbstractObjectBidirectionalIterator
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 back.Iterator.next()
public long back(long n)
AbstractObjectBigListIterator
BidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.back
in class AbstractObjectBigListIterator<K>
public void remove()
AbstractObjectIterator
UnsupportedOperationException
.public int skip(int n)
AbstractObjectIterator
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)
AbstractObjectBigListIterator
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()
BidirectionalIterator
ListIterator.hasPrevious()
public K next()
public K previous()
BidirectionalIterator
ListIterator.previous()
public long nextIndex()
BigListIterator
ListIterator.nextIndex()
public long previousIndex()
BigListIterator
ListIterator.previousIndex()