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 type
C - 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 Details

  • Constructor Details

    • BreadthFirstSearchIterator

      public BreadthFirstSearchIterator(C current, Function<? super T,? extends Stream<? extends T>> successorFn, Supplier<? extends Collector<T,?,C>> collectorSupplier)
  • Method Details

    • computeNext

      protected C computeNext()
      Specified by:
      computeNext in class com.google.common.collect.AbstractIterator<C extends Collection<T>>