public class LargeLongArray.Iterator
extends java.lang.Object
implements java.util.PrimitiveIterator.OfLong
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.
|
long |
nextLong()
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 long nextLong()
nextLong
in interface java.util.PrimitiveIterator.OfLong
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Long>