relaxngcc.util
Class SelectiveIterator

java.lang.Object
  extended by relaxngcc.util.SelectiveIterator
All Implemented Interfaces:
java.util.Iterator

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

Iterator that returns a subset of another iterator by filtering out some of the elements.

Author:
Kohsuke Kawaguchi (kk@kohsuke.org)

Constructor Summary
SelectiveIterator(java.util.Iterator base)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectiveIterator

public SelectiveIterator(java.util.Iterator base)
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