Class TreeSpliterator<T,U>
java.lang.Object
one.util.streamex.Internals.CloneableSpliterator<U, TreeSpliterator<T,U>>
one.util.streamex.TreeSpliterator<T,U>
- All Implemented Interfaces:
AutoCloseable, Cloneable, Runnable, Consumer<T>, Spliterator<U>
- Direct Known Subclasses:
TreeSpliterator.Depth, TreeSpliterator.Plain
abstract class TreeSpliterator<T,U>
extends Internals.CloneableSpliterator<U, TreeSpliterator<T,U>>
implements Consumer<T>, AutoCloseable, Runnable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static class(package private) static classNested classes/interfaces inherited from interface Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Runnable(package private) Tprivate static final int(package private) long(package private) List<Internals.PairBox<Spliterator<T>, Stream<T>>> Fields inherited from interface Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Internals.CloneableSpliterator
doCloneMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Spliterator
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics, tryAdvance
-
Field Details
-
MAX_RECURSION_DEPTH
private static final int MAX_RECURSION_DEPTH -
cur
T cur -
spliterators
List<Internals.PairBox<Spliterator<T>, Stream<T>>> spliterators -
closeHandler
-
size
long size
-
-
Constructor Details
-
TreeSpliterator
TreeSpliterator(T root)
-
-
Method Details
-
advance
boolean advance() -
append
-
getStart
-
getStartElement
-
trySplit
- Specified by:
trySplitin interfaceSpliterator<T>
-
estimateSize
public long estimateSize()- Specified by:
estimateSizein interfaceSpliterator<T>
-
characteristics
public int characteristics()- Specified by:
characteristicsin interfaceSpliterator<T>
-
accept
-
run
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-