Package one.util.streamex
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 class
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T extends Object,
T_CONS extends Object, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Runnable
(package private) T
private static final int
(package private) long
(package private) List<Internals.PairBox<Spliterator<T>,
Stream<T>>> Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class one.util.streamex.Internals.CloneableSpliterator
doClone
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.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:
trySplit
in interfaceSpliterator<T>
-
estimateSize
public long estimateSize()- Specified by:
estimateSize
in interfaceSpliterator<T>
-
characteristics
public int characteristics()- Specified by:
characteristics
in interfaceSpliterator<T>
-
accept
-
run
public void run() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-