public interface LongStepper extends Stepper<java.lang.Object>, java.util.PrimitiveIterator.OfLong, java.util.Spliterator.OfLong, StepperLike<java.lang.Object,LongStepper>
Stepper.OfDoubleSpliterator, Stepper.OfIntSpliterator, Stepper.OfLongSpliterator, Stepper.OfSpliterator<A>, Stepper.UnboxingByteStepper, Stepper.UnboxingCharStepper, Stepper.UnboxingDoubleStepper, Stepper.UnboxingFloatStepper, Stepper.UnboxingIntStepper, Stepper.UnboxingLongStepper, Stepper.UnboxingShortStepper
Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(java.util.function.Consumer<? super java.lang.Long> c) |
void |
forEachRemaining(java.util.function.LongConsumer c) |
boolean |
hasStep()
`true` if there are more elements to step through, `false` if not.
|
long |
knownSize()
Returns the size of the collection, if known exactly, or `-1` if not.
|
long |
nextStep()
The next element traversed by this Stepper.
|
java.util.stream.LongStream |
parStream() |
java.util.stream.LongStream |
seqStream() |
java.util.Spliterator<java.lang.Object> |
spliterator()
Returns this
Stepper as a java.util.Spliterator . |
boolean |
tryAdvance(java.util.function.Consumer<? super java.lang.Long> c) |
boolean |
tryAdvance(java.util.function.LongConsumer c) |
LongStepper |
trySplit() |
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`.
|
accumulate
anticipateParallelism, characteristics, count, count, exists, find, fold, foldTo, foreach, iterator, reduce, substep, to
void forEachRemaining(java.util.function.Consumer<? super java.lang.Long> c)
forEachRemaining
in interface java.util.Iterator<java.lang.Long>
forEachRemaining
in interface java.util.PrimitiveIterator.OfLong
forEachRemaining
in interface java.util.Spliterator<java.lang.Long>
forEachRemaining
in interface java.util.Spliterator.OfLong
void forEachRemaining(java.util.function.LongConsumer c)
forEachRemaining
in interface java.util.PrimitiveIterator<java.lang.Long,java.util.function.LongConsumer>
forEachRemaining
in interface java.util.PrimitiveIterator.OfLong
forEachRemaining
in interface java.util.Spliterator.OfLong
forEachRemaining
in interface java.util.Spliterator.OfPrimitive<java.lang.Long,java.util.function.LongConsumer,java.util.Spliterator.OfLong>
boolean hasStep()
StepperLike
hasStep
in interface StepperLike<java.lang.Object,LongStepper>
long knownSize()
StepperLike
knownSize
in interface StepperLike<java.lang.Object,LongStepper>
long nextStep()
StepperLike
nextStep()
throws an exception if no elements exist, so check hasStep
immediately prior
to calling. Note that tryStep
also consumes an element, so the result of hasStep
will
be invalid after tryStep
is called.nextStep
in interface StepperLike<java.lang.Object,LongStepper>
java.util.stream.LongStream parStream()
java.util.stream.LongStream seqStream()
java.util.Spliterator<java.lang.Object> spliterator()
StepperLike
Stepper
as a java.util.Spliterator
.
This is a terminal operation.spliterator
in interface StepperLike<java.lang.Object,LongStepper>
boolean tryAdvance(java.util.function.Consumer<? super java.lang.Long> c)
tryAdvance
in interface java.util.Spliterator<java.lang.Long>
tryAdvance
in interface java.util.Spliterator.OfLong
boolean tryAdvance(java.util.function.LongConsumer c)
tryAdvance
in interface java.util.Spliterator.OfLong
tryAdvance
in interface java.util.Spliterator.OfPrimitive<java.lang.Long,java.util.function.LongConsumer,java.util.Spliterator.OfLong>
LongStepper trySplit()
trySplit
in interface java.util.Spliterator<java.lang.Long>
trySplit
in interface java.util.Spliterator.OfLong
trySplit
in interface java.util.Spliterator.OfPrimitive<java.lang.Long,java.util.function.LongConsumer,java.util.Spliterator.OfLong>
boolean tryStep(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
StepperLike
tryStep
in interface StepperLike<java.lang.Object,LongStepper>