public abstract class AbstractFilteredIterator<T> extends AbstractIterator<T>
filter
the elements of a delegate iterator.END_OF_DATA
Constructor and Description |
---|
AbstractFilteredIterator(Iterator<T> delegate) |
Modifier and Type | Method and Description |
---|---|
protected Object |
computeNextElement()
Returns the next iteration element, or
AbstractIterator.END_OF_DATA if the end of the iteration has been reached. |
protected abstract boolean |
isValid(T element) |
hasNext, next, remove
protected Object computeNextElement()
AbstractIterator
AbstractIterator.END_OF_DATA
if the end of the iteration has been reached.computeNextElement
in class AbstractIterator<T>
protected abstract boolean isValid(T element)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.