Package one.util.streamex
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 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 Spliterator<? extends T>private Spliterator<? extends T>private final AtomicIntegerFields inherited from interface java.util.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 one.util.streamex.Internals.CloneableSpliterator
doCloneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.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()
-