Class ArrayNonNullIterator<T>
java.lang.Object
com.ibm.wala.util.collections.ArrayIterator<T>
com.ibm.wala.util.collections.ArrayNonNullIterator<T>
- All Implemented Interfaces:
Iterator<T>
Iterator that only returns non-null elements of the array
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
-
Field Summary
Fields inherited from class ArrayIterator
_cnt, _elts, last -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ArrayIterator
removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
ArrayNonNullIterator
-
ArrayNonNullIterator
-
-
Method Details
-
hasNext
-
next
-