net.ontopia.utils
Class DeciderIterator<T>
java.lang.Object
net.ontopia.utils.DeciderIterator<T>
- All Implemented Interfaces:
- Iterator<T>
public class DeciderIterator<T>
- extends Object
- implements Iterator<T>
INTERNAL: An iterator that uses a decider to filter the elements of
another iterator.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
decider
protected DeciderIF<T> decider
iterator
protected Iterator<T> iterator
done
protected boolean done
next
protected T next
DeciderIterator
public DeciderIterator(DeciderIF<T> decider,
Iterator<T> iterator)
findNext
protected void findNext()
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>
Copyright © 2000-2012 Ontopia.