Class TreeBreadthFirstSpliterator<V>

java.lang.Object
java.util.Spliterators.AbstractSpliterator<V>
org.jhotdraw8.collection.enumerator.AbstractEnumerator<V>
org.jhotdraw8.fxbase.tree.TreeBreadthFirstSpliterator<V>
Type Parameters:
V - the vertex data type
All Implemented Interfaces:
Spliterator<V>, org.jhotdraw8.collection.enumerator.BareEnumerator<V>, org.jhotdraw8.collection.enumerator.Enumerator<V>

public class TreeBreadthFirstSpliterator<V> extends org.jhotdraw8.collection.enumerator.AbstractEnumerator<V>
BreadthFirstSpliterator for a tree structure.
Author:
Werner Randelshofer
  • Constructor Details

    • TreeBreadthFirstSpliterator

      public TreeBreadthFirstSpliterator(Function<V,Iterable<V>> nextFunction, V root)
      Creates a new instance.
      Parameters:
      nextFunction - the nextFunction
      root - the root vertex
  • Method Details

    • moveNext

      public boolean moveNext()