public static class DoubleIterators.UnmodifiableListIterator extends Object implements DoubleListIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong| Constructor and Description |
|---|
UnmodifiableListIterator(DoubleListIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
double |
nextDouble()
Returns the next element as a primitive type.
|
int |
nextIndex() |
double |
previousDouble()
Returns the previous element as a primitive type.
|
int |
previousIndex() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, next, previous, remove, set, setback, skipforEachRemainingforEachRemainingpublic UnmodifiableListIterator(DoubleListIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Double>hasPrevious in interface ListIterator<Double>ListIterator.hasPrevious()public double nextDouble()
DoubleIteratornextDouble in interface DoubleIteratornextDouble in interface PrimitiveIterator.OfDoubleIterator.next()public double previousDouble()
DoubleBidirectionalIteratorpreviousDouble in interface DoubleBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex in interface ListIterator<Double>public int previousIndex()
previousIndex in interface ListIterator<Double>