public class MappingStepper$mcDI$sp extends MappingStepper<java.lang.Object,java.lang.Object> implements Stepper$mcI$sp
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 |
---|
MappingStepper$mcDI$sp(Stepper<java.lang.Object> underlying$mcD$sp,
scala.Function1<java.lang.Object,java.lang.Object> mapping$mcDI$sp) |
Modifier and Type | Method and Description |
---|---|
void |
foreach(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
Applies
f to every remaining element in the collection. |
int |
nextStep()
The next element traversed by this Stepper.
|
Stepper<java.lang.Object> |
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 |
tryStep(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
If another element exists, apply `f` to it and return `true`; otherwise, return `false`.
|
characteristics, hasStep, knownSize, spliterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accumulate
anticipateParallelism, characteristics, count, count, exists, find, fold, foldTo, hasStep, iterator, knownSize, reduce, spliterator, to
public MappingStepper$mcDI$sp(Stepper<java.lang.Object> underlying$mcD$sp, scala.Function1<java.lang.Object,java.lang.Object> mapping$mcDI$sp)
public void foreach(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
StepperLike
f
to every remaining element in the collection.
This is a terminal operation.foreach
in interface StepperLike<java.lang.Object,Stepper<java.lang.Object>>
foreach
in class MappingStepper<java.lang.Object,java.lang.Object>
f
- (undocumented)public 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,Stepper<java.lang.Object>>
public Stepper<java.lang.Object> substep()
StepperLike
Stepper
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,Stepper<java.lang.Object>>
substep
in class MappingStepper<java.lang.Object,java.lang.Object>
public boolean tryStep(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
StepperLike
tryStep
in interface StepperLike<java.lang.Object,Stepper<java.lang.Object>>
tryStep
in class MappingStepper<java.lang.Object,java.lang.Object>