public class NullArrayIterator extends IteratorAdapter
Constructor and Description |
---|
NullArrayIterator(Object[] array)
Construct an iterator over the given array
|
NullArrayIterator(Object[] array,
int length)
Construct an iterator over the given array, where the
effective array length is given by the length argument
(and must be smaller than the real length of the array).
|
Modifier and Type | Method and Description |
---|---|
protected void |
advance()
Advance the next index to the next non-null element.
|
protected int |
getLastIndex()
Return the index of the element last returned.
|
boolean |
hasNext()
Return true if there are more non-null elements in the array.
|
Object |
next()
Return the next non-null element in the array.
|
remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public NullArrayIterator(Object[] array)
public NullArrayIterator(Object[] array, int length)
protected void advance()
protected int getLastIndex()
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in class IteratorAdapter
public Object next()
next
in interface Iterator
next
in class IteratorAdapter
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.