public class LargeIntArray.Iterator
extends java.lang.Object
implements java.util.PrimitiveIterator.OfInt
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.
|
int |
nextInt()
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 int nextInt()
nextInt
in interface java.util.PrimitiveIterator.OfInt
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Integer>