Class IfEmptySpliterator<T>
java.lang.Object
one.util.streamex.Internals.CloneableSpliterator<T, IfEmptySpliterator<T>>
one.util.streamex.IfEmptySpliterator<T>
- All Implemented Interfaces:
Cloneable, Spliterator<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Spliterator<? extends T> private Spliterator<? extends T> private final AtomicIntegerFields inherited from interface Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
ConstructorsConstructorDescriptionIfEmptySpliterator(Spliterator<? extends T> spltr, Spliterator<? extends T> alt) -
Method Summary
Modifier and TypeMethodDescriptionint(package private) booleanlongvoidforEachRemaining(Consumer<? super T> action) booleantryAdvance(Consumer<? super T> action) (package private) voidtryInit()trySplit()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
getComparator, getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
spltr
-
alt
-
state
-
-
Constructor Details
-
IfEmptySpliterator
-
-
Method Details
-
tryInit
void tryInit() -
tryAdvance
-
forEachRemaining
-
drawState
boolean drawState() -
trySplit
-
estimateSize
public long estimateSize() -
characteristics
public int characteristics()
-