public class LargeDoubleArray.Iterator
extends java.lang.Object
implements java.util.PrimitiveIterator.OfDouble
Constructor and Description |
---|
Iterator()
Constructs an iterator that iterates over all elements.
|
Iterator(long from)
Constructs an iterator that iterates over all elements, starting from
some element.
|
Iterator(long from,
long to)
Constructs an iterator that iterates over some range, starting from
some element to some element.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Indicates whether there are any elements left.
|
double |
nextDouble()
Provides next value in array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Iterator()
public Iterator(long from)
from
- From index, inclusivepublic Iterator(long from, long to)
from
- From index, inclusiveto
- To index, exclusivepublic double nextDouble()
nextDouble
in interface java.util.PrimitiveIterator.OfDouble
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Double>