Package one.util.streamex
Class TakeDrop.UnorderedTDOfRef<T>
java.lang.Object
one.util.streamex.Internals.CloneableSpliterator<T,TakeDrop.UnorderedTDOfRef<T>>
one.util.streamex.TakeDrop.UnorderedTDOfRef<T>
- All Implemented Interfaces:
Cloneable
,Consumer<T>
,Spliterator<T>
- Enclosing interface:
- TakeDrop
public static final class TakeDrop.UnorderedTDOfRef<T>
extends Internals.CloneableSpliterator<T,TakeDrop.UnorderedTDOfRef<T>>
implements Consumer<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 final AtomicBoolean
private T
private final boolean
private final boolean
private Spliterator<T>
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorsConstructorDescriptionUnorderedTDOfRef
(Spliterator<T> source, boolean drop, boolean inclusive, Predicate<? super T> predicate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
long
boolean
tryAdvance
(Consumer<? super T> action) trySplit()
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
-
Field Details
-
predicate
-
drop
private final boolean drop -
inclusive
private final boolean inclusive -
checked
-
source
-
cur
-
-
Constructor Details
-
UnorderedTDOfRef
UnorderedTDOfRef(Spliterator<T> source, boolean drop, boolean inclusive, Predicate<? super T> predicate)
-
-
Method Details
-
accept
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator<T>
-
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>
-