public static class LongBigListIterators.BigListIteratorListIterator extends AbstractLongBigListIterator
Modifier and Type | Method and Description |
---|---|
void |
add(long ok)
This method just throws an
UnsupportedOperationException . |
int |
back(int n)
This method just iterates the type-specific version of
AbstractLongBidirectionalIterator.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
AbstractLongBidirectionalIterator.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.
|
long |
nextLong()
Delegates to the corresponding generic method.
|
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
long |
previousLong()
Delegates to the corresponding generic method.
|
void |
remove()
This method just throws an
UnsupportedOperationException . |
void |
set(long ok)
This method just throws an
UnsupportedOperationException . |
int |
skip(int n)
This method just iterates the type-specific version of
AbstractLongIterator.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
AbstractLongIterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false. |
add, set
previous
next
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
previous
public void set(long ok)
AbstractLongBigListIterator
UnsupportedOperationException
.set
in interface LongBigListIterator
set
in class AbstractLongBigListIterator
public void add(long ok)
AbstractLongBigListIterator
UnsupportedOperationException
.add
in interface LongBigListIterator
add
in class AbstractLongBigListIterator
public int back(int n)
AbstractLongBidirectionalIterator
AbstractLongBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.back
in interface LongBidirectionalIterator
back
in interface ObjectBidirectionalIterator<java.lang.Long>
back
in class AbstractLongBidirectionalIterator
n
- the number of elements to skip back.Iterator.next()
public long back(long n)
AbstractLongBigListIterator
AbstractLongBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.back
in class AbstractLongBigListIterator
public void remove()
AbstractLongIterator
UnsupportedOperationException
.remove
in interface java.util.Iterator<java.lang.Long>
remove
in class AbstractLongIterator
public int skip(int n)
AbstractLongIterator
AbstractLongIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.skip
in interface LongIterator
skip
in interface ObjectIterator<java.lang.Long>
skip
in class AbstractLongIterator
n
- the number of elements to skip.Iterator.next()
public long skip(long n)
AbstractLongBigListIterator
AbstractLongIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.skip
in interface BigListIterator<java.lang.Long>
skip
in class AbstractLongBigListIterator
n
- the number of elements to skip.public boolean hasNext()
public boolean hasPrevious()
BidirectionalIterator
ListIterator.hasPrevious()
public long nextLong()
AbstractLongIterator
nextLong
in interface LongIterator
nextLong
in class AbstractLongIterator
Iterator.next()
public long previousLong()
AbstractLongBidirectionalIterator
previousLong
in interface LongBidirectionalIterator
previousLong
in class AbstractLongBidirectionalIterator
ListIterator.previous()
public long nextIndex()
BigListIterator
ListIterator.nextIndex()
public long previousIndex()
BigListIterator
ListIterator.previousIndex()