public abstract class FilteredArrayIterator extends NullArrayIterator
_array, _arraylen, _lastindex, _nextindex
Constructor and Description |
---|
FilteredArrayIterator(java.lang.Object[] array)
Construct a filtered array iterator.
|
FilteredArrayIterator(java.lang.Object[] array,
int length)
Construct a filtered array iterator.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
accept(java.lang.Object o)
Test if the object is acceptable for return by the iterator.
|
protected void |
advance()
Advance the next index to the next non-null element.
|
getLastIndex, hasNext, next
remove
public FilteredArrayIterator(java.lang.Object[] array)
array
- The arraypublic FilteredArrayIterator(java.lang.Object[] array, int length)
array
- The arraylength
- The lengthpublic abstract boolean accept(java.lang.Object o)
o
- The object to be testedprotected void advance()
advance
in class NullArrayIterator