LongStepper

scala.collection.LongStepper
See theLongStepper companion object
trait LongStepper extends Stepper[Long]

A Stepper for Longs. See Stepper.

Attributes

Companion
object
Graph
Supertypes
trait Stepper[Long]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def trySplit(): LongStepper^{this} | Null

Split this stepper, if applicable. The elements of the current Stepper are split up between the resulting Stepper and the current stepper.

Split this stepper, if applicable. The elements of the current Stepper are split up between the resulting Stepper and the current stepper.

May return null, in which case the current Stepper yields the same elements as before.

See method trySplit in java.util.Spliterator.

Attributes

Concrete methods

def javaIterator[B >: Long]: OfLong^{this}

Returns a Java java.util.Iterator corresponding to this Stepper.

Returns a Java java.util.Iterator corresponding to this Stepper.

Note that the return type is Iterator[_] instead of Iterator[A] to allow returning a java.util.PrimitiveIterator.OfInt (which is a Iterator[Integer]) in the subclass IntStepper (which is a Stepper[Int]).

Attributes

def spliterator[B >: Long]: OfLong^{this}

Returns a java.util.Spliterator corresponding to this Stepper.

Returns a java.util.Spliterator corresponding to this Stepper.

Note that the return type is Spliterator[_] instead of Spliterator[A] to allow returning a java.util.Spliterator.OfInt (which is a Spliterator[Integer]) in the subclass IntStepper (which is a Stepper[Int]).

Attributes

Inherited methods

def iterator: Iterator[Long]^{this}

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

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

Attributes

Inherited from:
Stepper

Inherited and Abstract methods

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

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

Attributes

Inherited from:
Stepper

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

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

Attributes

Inherited from:
Stepper

Check if there's an element available.

Check if there's an element available.

Attributes

Inherited from:
Stepper
def nextStep(): Long

Return the next element and advance the stepper

Return the next element and advance the stepper

Attributes

Inherited from:
Stepper