public class ArrayNonNullIterator<T> extends ArrayIterator<T>
hasNext() return true when there is a non-null element, false otherwise
next() returns the current element and advances the counter up to the next non-null element or beyond the limit of the array
_cnt, _elts, last| Constructor and Description |
|---|
ArrayNonNullIterator(T[] elts) |
ArrayNonNullIterator(T[] elts,
int start) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining