net.ontopia.utils
Class DeciderIterator

java.lang.Object
  extended by net.ontopia.utils.DeciderIterator
All Implemented Interfaces:
java.util.Iterator

public class DeciderIterator
extends java.lang.Object
implements java.util.Iterator

INTERNAL: An iterator that uses a decider to filter the elements of another iterator.


Constructor Summary
DeciderIterator(DeciderIF decider, java.util.Iterator iterator)
           
 
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

DeciderIterator

public DeciderIterator(DeciderIF decider,
                       java.util.Iterator iterator)
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


Copyright © 2000-2010 Ontopia.