janino.net

org.codehaus.janino.util.iterator
Class FilterIterator<T>

java.lang.Object
  extended by 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.


Field Summary
protected  Iterator<T> delegate
           
 
Constructor Summary
FilterIterator(Iterator<T> delegate)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected final Iterator<T> delegate
See Also:
FilterIterator
Constructor Detail

FilterIterator

public FilterIterator(Iterator<T> delegate)
Method Detail

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>

janino.net