java.lang.Object
java.util.Spliterators.AbstractSpliterator<V>
org.jhotdraw8.collection.enumerator.AbstractEnumerator<V>
org.jhotdraw8.fxbase.tree.TreeDepthFirstSpliterator<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 TreeDepthFirstSpliterator<V>
extends org.jhotdraw8.collection.enumerator.AbstractEnumerator<V>
DepthFirstSpliterator for a tree structure.
- Author:
- Werner Randelshofer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jhotdraw8.collection.enumerator.Enumerator
org.jhotdraw8.collection.enumerator.Enumerator.OfDouble, org.jhotdraw8.collection.enumerator.Enumerator.OfInt, org.jhotdraw8.collection.enumerator.Enumerator.OfLongNested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
Fields inherited from class org.jhotdraw8.collection.enumerator.AbstractEnumerator
currentFields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jhotdraw8.collection.enumerator.AbstractEnumerator
currentMethods inherited from class java.util.Spliterators.AbstractSpliterator
characteristics, estimateSize, trySplitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.collection.enumerator.Enumerator
tryAdvanceMethods inherited from interface java.util.Spliterator
characteristics, estimateSize, forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics, trySplit
-
Constructor Details
-
TreeDepthFirstSpliterator
Creates a new instance.- Parameters:
nextFunction- the nextFunctionroot- the root vertex
-
-
Method Details
-
moveNext
public boolean moveNext()
-