org.jjoost.collections.iters
Class TransitiveClosureIterator<E>
java.lang.Object
org.jjoost.collections.iters.TransitiveClosureIterator<E>
- All Implemented Interfaces:
- java.util.Iterator<E>
public class TransitiveClosureIterator<E>
- extends java.lang.Object
- implements java.util.Iterator<E>
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransitiveClosureIterator
public TransitiveClosureIterator(Function<E,? extends java.util.Iterator<E>> function,
E start)
TransitiveClosureIterator
public TransitiveClosureIterator(Function<E,? extends java.util.Iterator<E>> function,
E start,
boolean graph)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator<E>
next
public E next()
- Specified by:
next in interface java.util.Iterator<E>
remove
public void remove()
- Specified by:
remove in interface java.util.Iterator<E>