Package org.aksw.commons.util.traverse
Class BreadthFirstSearchIterator<T,C extends Collection<T>>
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<T>
-
- com.google.common.collect.AbstractIterator<C>
-
- org.aksw.commons.util.traverse.BreadthFirstSearchIterator<T,C>
-
- Type Parameters:
T- The node typeC- The collection type of a breath
- All Implemented Interfaces:
Iterator<C>
public class BreadthFirstSearchIterator<T,C extends Collection<T>> extends com.google.common.collect.AbstractIterator<C>- Author:
- raven
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Supplier<? extends java.util.stream.Collector<T,?,C>>collectorSupplierprotected Ccurrentprotected CnextResultprotected Set<? super T>seenprotected java.util.function.Function<? super T,? extends java.util.stream.Stream<? extends T>>successorFn
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CcomputeNext()-
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
current
protected C extends Collection<T> current
-
successorFn
protected java.util.function.Function<? super T,? extends java.util.stream.Stream<? extends T>> successorFn
-
collectorSupplier
protected java.util.function.Supplier<? extends java.util.stream.Collector<T,?,C extends Collection<T>>> collectorSupplier
-
nextResult
protected C extends Collection<T> nextResult
-
-
Method Detail
-
computeNext
protected C computeNext()
- Specified by:
computeNextin classcom.google.common.collect.AbstractIterator<C extends Collection<T>>
-
-