Web Site

org.codehaus.janino.util.iterator
Class FilterIterator

java.lang.Object
  extended by org.codehaus.janino.util.iterator.FilterIterator
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
TransformingIterator

public abstract class FilterIterator
extends java.lang.Object
implements java.util.Iterator

An Iterator that retrieves its elements from a delegate Iterator. The default implementation simply passes all method invocations to the delegate.


Field Summary
protected  java.util.Iterator delegate
           
 
Constructor Summary
FilterIterator(java.util.Iterator delegate)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object 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 java.util.Iterator delegate
Constructor Detail

FilterIterator

public FilterIterator(java.util.Iterator delegate)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

Web Site