public final class IntegerArrayIterator extends Object implements ProtectedIterator<Integer>
| Constructor and Description |
|---|
IntegerArrayIterator(int[] array)
Creates a new IntegerArrayIterator that iterates over the
given
int[]. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Integer |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic IntegerArrayIterator(int[] array)
throws IllegalArgumentException
int[].array - The int[] to iterate over.IllegalArgumentException - If the given int[] is null.public Integer next() throws NoSuchElementException
next in interface Iterator<Integer>NoSuchElementExceptionpublic void remove()
throws UnsupportedOperationException
remove in interface Iterator<Integer>UnsupportedOperationExceptionCopyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.