org.codehaus.janino.util.iterator
Class FilterIterator<T>
java.lang.Object
org.codehaus.janino.util.iterator.FilterIterator<T>
- Type Parameters:
T - The element type of the iterator
- All Implemented Interfaces:
- Iterator<T>
public abstract class FilterIterator<T>
- extends Object
- implements Iterator<T>
An Iterator that retrieves its elements from a delegate Iterator. The default
implementation simply passes all method invocations to the delegate.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
protected final Iterator<T> delegate
- See Also:
FilterIterator
FilterIterator
public FilterIterator(Iterator<T> delegate)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<T>
next
public T next()
- Specified by:
next in interface Iterator<T>
remove
public void remove()
- Specified by:
remove in interface Iterator<T>