|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.utils.DeciderIterator<T>
public class DeciderIterator<T>
INTERNAL: An iterator that uses a decider to filter the elements of another iterator.
Field Summary | |
---|---|
protected DeciderIF<T> |
decider
|
protected boolean |
done
|
protected java.util.Iterator<T> |
iterator
|
protected T |
next
|
Constructor Summary | |
---|---|
DeciderIterator(DeciderIF<T> decider,
java.util.Iterator<T> iterator)
|
Method Summary | |
---|---|
protected void |
findNext()
|
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 |
---|
protected DeciderIF<T> decider
protected java.util.Iterator<T> iterator
protected boolean done
protected T next
Constructor Detail |
---|
public DeciderIterator(DeciderIF<T> decider, java.util.Iterator<T> iterator)
Method Detail |
---|
protected void findNext()
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T next()
next
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |