public static class DoubleBigListIterators.BigListIteratorListIterator extends AbstractDoubleBigListIterator
| Modifier and Type | Method and Description |
|---|---|
void |
add(double 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
AbstractDoubleBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false. |
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
double |
nextDouble()
Returns the next element as a primitive type.
|
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
double |
previousDouble()
This implementation delegates to
AbstractDoubleBidirectionalIterator.previous(). |
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(double ok)
Replaces the last element returned by
DoubleIterator.next() or
DoubleBidirectionalIterator.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(double ok)
AbstractDoubleBigListIteratorDoubleIterator.next() or
DoubleBidirectionalIterator.previous() with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface DoubleBigListIteratorset in class AbstractDoubleBigListIteratorListIterator.set(Object)public void add(double ok)
AbstractDoubleBigListIterator
This implementation always throws an
UnsupportedOperationException.
add in interface DoubleBigListIteratoradd in class AbstractDoubleBigListIteratorListIterator.add(Object)public int back(int n)
AbstractDoubleBidirectionalIterator
The effect of this call is exactly the same as that of calling
DoubleBidirectionalIterator.previous() for n times (possibly stopping if
BidirectionalIterator.hasPrevious() becomes false).
This implemntation iterates the type-specific version of
AbstractDoubleBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in interface DoubleBidirectionalIteratorback in interface ObjectBidirectionalIterator<Double>back in class AbstractDoubleBidirectionalIteratorn - the number of elements to skip backwards.AbstractDoubleBidirectionalIterator.previous()public long back(long n)
AbstractDoubleBigListIterator
This implemntation iterates the type-specific version of
AbstractDoubleBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in class AbstractDoubleBigListIteratorn - the number of elements to skip backwards.public void remove()
AbstractDoubleIterator
This implementation always throws an
UnsupportedOperationException.
remove in interface Iterator<Double>remove in class AbstractDoubleIteratorpublic int skip(int n)
AbstractDoubleIterator
The effect of this call is exactly the same as that of calling
DoubleIterator.next() for n times (possibly stopping if
Iterator.hasNext() becomes false).
This implementaion iterates the type-specific version of AbstractDoubleIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface DoubleIteratorskip in interface ObjectIterator<Double>skip in class AbstractDoubleIteratorn - the number of elements to skip.Iterator.next()public long skip(long n)
AbstractDoubleBigListIteratorThe 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 AbstractDoubleIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface BigListIterator<Double>skip in class AbstractDoubleBigListIteratorn - the number of elements to skip.public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public double nextDouble()
AbstractDoubleIteratorThis implementation delegates to the corresponding generic method.
nextDouble in interface DoubleIteratornextDouble in class AbstractDoubleIteratorIterator.next()public double previousDouble()
AbstractDoubleBidirectionalIterator
This implementation delegates to AbstractDoubleBidirectionalIterator.previous().
previousDouble in interface DoubleBidirectionalIteratorpreviousDouble in class AbstractDoubleBidirectionalIteratorListIterator.previous()public long nextIndex()
BigListIteratorListIterator.nextIndex()public long previousIndex()
BigListIteratorListIterator.previousIndex()