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 Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicBooleanprivate Tprivate final booleanprivate final booleanprivate Spliterator<T> Fields inherited from interface 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 TypeMethodDescriptionvoidintlongbooleantryAdvance(Consumer<? super T> action) 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
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:
tryAdvancein interfaceSpliterator<T>
-
trySplit
- Specified by:
trySplitin interfaceSpliterator<T>
-
estimateSize
public long estimateSize()- Specified by:
estimateSizein interfaceSpliterator<T>
-
characteristics
public int characteristics()- Specified by:
characteristicsin interfaceSpliterator<T>
-