public class LongAccumulatorStepper extends java.lang.Object implements LongStepper
Stepper.OfDoubleSpliterator, Stepper.OfIntSpliterator, Stepper.OfLongSpliterator, Stepper.OfSpliterator<A>, Stepper.UnboxingByteStepper, Stepper.UnboxingCharStepper, Stepper.UnboxingDoubleStepper, Stepper.UnboxingFloatStepper, Stepper.UnboxingIntStepper, Stepper.UnboxingLongStepper, Stepper.UnboxingShortStepper| Constructor and Description |
|---|
LongAccumulatorStepper(LongAccumulator acc) |
| Modifier and Type | Method and Description |
|---|---|
long[] |
a() |
int |
characteristics()
Characteristics are bit flags that indicate runtime characteristics of this Stepper.
|
long |
estimateSize() |
void |
foreach(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
Applies
f to every remaining element in the collection. |
void |
forEachRemaining(java.util.function.LongConsumer f) |
boolean |
hasNext() |
int |
i() |
void |
loadMore() |
long |
n() |
long |
N() |
long |
nextLong() |
LongStepper |
substep()
Attempt to split this
Stepper in half, with the new (returned) copy taking the first half
of the collection, and this one advancing to cover the second half. |
boolean |
tryAdvance(java.util.function.LongConsumer f) |
boolean |
tryStep(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
If another element exists, apply `f` to it and return `true`; otherwise, return `false`.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasStep, knownSize, nextStep, parStream, seqStream, spliterator, tryAdvance, trySplitaccumulatepublic LongAccumulatorStepper(LongAccumulator acc)
public int i()
public long[] a()
public long n()
public long N()
public void loadMore()
public int characteristics()
StepperLike
- Distinct means that no duplicates exist
- Immutable means that the underlying collection is guaranteed not to change during traversal
- NonNull means that no nulls will be returned during traversal
- Sized means that the collection knows its exact size
- SubSized means that sub-Steppers created with substep() will also know their own size. SubSized steppers must also be Sized.
The Java flags CONCURRENT and SORTED are not supported; modification of a concurrency-aware underlying collection is not
guaranteed to be any safer than modification of any generic mutable collection, and if the underlying collection is ordered by
virtue of sorting, Stepper will not keep track of that fact.
characteristics in interface java.util.Spliterator<java.lang.Long>characteristics in interface StepperLike<java.lang.Object,LongStepper>public long estimateSize()
estimateSize in interface java.util.Spliterator<java.lang.Long>public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Long>public long nextLong()
nextLong in interface java.util.PrimitiveIterator.OfLongpublic boolean tryStep(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
StepperLiketryStep in interface LongSteppertryStep in interface StepperLike<java.lang.Object,LongStepper>public boolean tryAdvance(java.util.function.LongConsumer f)
tryAdvance in interface java.util.Spliterator.OfLongtryAdvance in interface java.util.Spliterator.OfPrimitive<java.lang.Long,java.util.function.LongConsumer,java.util.Spliterator.OfLong>tryAdvance in interface LongStepperpublic void foreach(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
StepperLikef to every remaining element in the collection.
This is a terminal operation.foreach in interface StepperLike<java.lang.Object,LongStepper>f - (undocumented)public void forEachRemaining(java.util.function.LongConsumer f)
forEachRemaining in interface java.util.PrimitiveIterator<java.lang.Long,java.util.function.LongConsumer>forEachRemaining in interface java.util.PrimitiveIterator.OfLongforEachRemaining in interface java.util.Spliterator.OfLongforEachRemaining in interface java.util.Spliterator.OfPrimitive<java.lang.Long,java.util.function.LongConsumer,java.util.Spliterator.OfLong>forEachRemaining in interface LongStepperpublic LongStepper substep()
StepperLikeStepper in half, with the new (returned) copy taking the first half
of the collection, and this one advancing to cover the second half. If subdivision is not
possible or not advisable, substep() will return null.substep in interface StepperLike<java.lang.Object,LongStepper>