public interface AnyStepper<A> extends Stepper<A>, java.util.Iterator<A>, java.util.Spliterator<A>, StepperLike<A,AnyStepper<A>>
| Modifier and Type | Interface and Description |
|---|---|
static class |
AnyStepper.BoxedDoubleStepper |
static class |
AnyStepper.BoxedIntStepper |
static class |
AnyStepper.BoxedLongStepper |
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 A> 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.
|
A |
nextStep()
The next element traversed by this Stepper.
|
java.util.stream.Stream<A> |
parStream() |
java.util.stream.Stream<A> |
seqStream() |
java.util.Spliterator<A> |
spliterator()
Returns this
Stepper as a java.util.Spliterator. |
boolean |
tryAdvance(java.util.function.Consumer<? super A> c) |
AnyStepper<A> |
trySplit() |
boolean |
tryStep(scala.Function1<A,scala.runtime.BoxedUnit> f)
If another element exists, apply `f` to it and return `true`; otherwise, return `false`.
|
accumulateanticipateParallelism, characteristics, count, count, exists, find, fold, foldTo, foreach, iterator, reduce, substep, tovoid forEachRemaining(java.util.function.Consumer<? super A> c)
boolean hasStep()
StepperLikehasStep in interface StepperLike<A,AnyStepper<A>>long knownSize()
StepperLikeknownSize in interface StepperLike<A,AnyStepper<A>>A nextStep()
StepperLikenextStep() 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<A,AnyStepper<A>>boolean tryAdvance(java.util.function.Consumer<? super A> c)
tryAdvance in interface java.util.Spliterator<A>boolean tryStep(scala.Function1<A,scala.runtime.BoxedUnit> f)
StepperLiketryStep in interface StepperLike<A,AnyStepper<A>>AnyStepper<A> trySplit()
trySplit in interface java.util.Spliterator<A>java.util.Spliterator<A> spliterator()
StepperLikeStepper as a java.util.Spliterator.
This is a terminal operation.spliterator in interface StepperLike<A,AnyStepper<A>>java.util.stream.Stream<A> seqStream()
java.util.stream.Stream<A> parStream()