public class ArrayIntIterator extends Object implements gnu.trove.iterator.TIntIterator
Constructor and Description |
---|
ArrayIntIterator(int[] array)
Iterate an array in order from the first to last element of the array.
|
ArrayIntIterator(int[] array,
int from,
int to)
Iterate an array in order starting in position from (inclusive) and
ending in position to (exclusive).
|
public ArrayIntIterator(int[] array)
array
- public ArrayIntIterator(int[] array, int from, int to)
array
- iterate this arrayfrom
- start iterating from this indexto
- stop before this indexpublic boolean hasNext()
hasNext
in interface gnu.trove.iterator.TIterator
public int next()
next
in interface gnu.trove.iterator.TIntIterator
public void remove() throws UnsupportedOperationException
remove
in interface gnu.trove.iterator.TIterator
UnsupportedOperationException
- if invokedCopyright © 2013. All Rights Reserved.