public interface IntStepper extends Stepper<java.lang.Object>, java.util.PrimitiveIterator.OfInt, java.util.Spliterator.OfInt, StepperLike<java.lang.Object,IntStepper>
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.Integer> c) |
void |
forEachRemaining(java.util.function.IntConsumer 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.
|
int |
nextStep()
The next element traversed by this Stepper.
|
java.util.stream.IntStream |
parStream() |
java.util.stream.IntStream |
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.Integer> c) |
boolean |
tryAdvance(java.util.function.IntConsumer c) |
IntStepper |
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.Integer> c)
forEachRemaining
in interface java.util.Iterator<java.lang.Integer>
forEachRemaining
in interface java.util.PrimitiveIterator.OfInt
forEachRemaining
in interface java.util.Spliterator<java.lang.Integer>
forEachRemaining
in interface java.util.Spliterator.OfInt
void forEachRemaining(java.util.function.IntConsumer c)
forEachRemaining
in interface java.util.PrimitiveIterator<java.lang.Integer,java.util.function.IntConsumer>
forEachRemaining
in interface java.util.PrimitiveIterator.OfInt
forEachRemaining
in interface java.util.Spliterator.OfInt
forEachRemaining
in interface java.util.Spliterator.OfPrimitive<java.lang.Integer,java.util.function.IntConsumer,java.util.Spliterator.OfInt>
boolean hasStep()
StepperLike
hasStep
in interface StepperLike<java.lang.Object,IntStepper>
long knownSize()
StepperLike
knownSize
in interface StepperLike<java.lang.Object,IntStepper>
int 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,IntStepper>
java.util.stream.IntStream parStream()
java.util.stream.IntStream 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,IntStepper>
boolean tryAdvance(java.util.function.Consumer<? super java.lang.Integer> c)
tryAdvance
in interface java.util.Spliterator<java.lang.Integer>
tryAdvance
in interface java.util.Spliterator.OfInt
boolean tryAdvance(java.util.function.IntConsumer c)
tryAdvance
in interface java.util.Spliterator.OfInt
tryAdvance
in interface java.util.Spliterator.OfPrimitive<java.lang.Integer,java.util.function.IntConsumer,java.util.Spliterator.OfInt>
IntStepper trySplit()
trySplit
in interface java.util.Spliterator<java.lang.Integer>
trySplit
in interface java.util.Spliterator.OfInt
trySplit
in interface java.util.Spliterator.OfPrimitive<java.lang.Integer,java.util.function.IntConsumer,java.util.Spliterator.OfInt>
boolean tryStep(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
StepperLike
tryStep
in interface StepperLike<java.lang.Object,IntStepper>