public class IntIterator
extends java.lang.Object
implements java.util.Iterator<java.lang.Integer>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isPositionValid |
| Constructor and Description |
|---|
IntIterator(int missingValue,
int[] values)
Construct an
Iterator over an array of primitives ints. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
findNext() |
boolean |
hasNext() |
java.lang.Integer |
next() |
int |
nextValue()
Strongly typed alternative of
Iterator.next() not to avoid boxing. |
protected int |
position() |
public IntIterator(int missingValue,
int[] values)
Iterator over an array of primitives ints.missingValue - to indicate the value is missing, i.e. not present or null.values - to iterate over.protected int position()
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Integer>protected void findNext()
public java.lang.Integer next()
next in interface java.util.Iterator<java.lang.Integer>public int nextValue()
Iterator.next() not to avoid boxing.Copyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.