Package one.util.streamex
Class PrefixOps.OfUnordRef<T>
java.lang.Object
one.util.streamex.Internals.CloneableSpliterator<T,PrefixOps<T,S>>
one.util.streamex.PrefixOps<T,Spliterator<T>>
one.util.streamex.PrefixOps.OfUnordRef<T>
- All Implemented Interfaces:
Cloneable
,Consumer<T>
,Spliterator<T>
- Enclosing class:
- PrefixOps<T,
S extends Spliterator<T>>
static final class PrefixOps.OfUnordRef<T>
extends PrefixOps<T,Spliterator<T>>
implements Consumer<T>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class one.util.streamex.PrefixOps
PrefixOps.OfDouble, PrefixOps.OfInt, PrefixOps.OfLong, PrefixOps.OfRef<T>, PrefixOps.OfUnordInt, PrefixOps.OfUnordLong, PrefixOps.OfUnordRef<T>, PrefixOps.PrefixBuffer
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfPrimitive<T extends Object,
T_CONS extends Object, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate T
private AtomicReference<T>
private PrefixOps.OfUnordRef<T>.RefPrefixBuffer
private final BinaryOperator<T>
private final BinaryOperator<T>
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
void
forEachRemaining
(Consumer<? super T> action) boolean
tryAdvance
(Consumer<? super T> action) trySplit()
Methods inherited from class one.util.streamex.PrefixOps
characteristics, estimateSize
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
getComparator, getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
localOp
-
accRef
-
acc
-
op
-
buffer
-
-
Constructor Details
-
OfUnordRef
OfUnordRef(Spliterator<T> source, BinaryOperator<T> op)
-
-
Method Details
-
trySplit
- Specified by:
trySplit
in interfaceSpliterator<T>
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator<T>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceSpliterator<T>
-
drain
-
accept
-