scala / 3.1 / scala / collection / anystepper.html

Trait scala.collection.AnyStepper

trait AnyStepper[+A] extends Stepper[A]

A Stepper for arbitrary element types. See Stepper.

Supertypes

Abstract methods

Source
def trySplit(): AnyStepper[A]

Concrete methods

Source
def javaIterator[B >: A]: Iterator[B]

Source
def spliterator[B >: A]: Spliterator[B]

Inherited methods

Source

Returns a set of characteristics of this Stepper and its elements. See method characteristics in java.util.Spliterator.

Inherited from Stepper

Source

Returns an estimate of the number of elements of this Stepper, or Long.MaxValue. See method estimateSize in java.util.Spliterator.

Inherited from Stepper

Source

Check if there's an element available.

Inherited from Stepper

Source
def iterator: Iterator[A]

Returns an Iterator corresponding to this Stepper. Note that Iterators corresponding to primitive Steppers box the elements.

Inherited from Stepper

Source
def nextStep(): A

Return the next element and advance the stepper

Inherited from Stepper

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/collection/AnyStepper.html