OfDouble

A Spliterator specialized for Double values.

Functions

Link copied to clipboard
abstract fun characteristics(): Int

Returns a set of characteristics of this Spliterator and its elements. The result is represented as ORed values from the constants defined in the companion object (ORDERED, DISTINCT, etc.).

Link copied to clipboard
abstract fun estimateSize(): Long

Returns an estimate of the number of elements that would be encountered by a forEachRemaining traversal, or Long.MAX_VALUE if infinite, unknown, or too expensive to compute.

Link copied to clipboard
open override fun forEachRemaining(action: (Double) -> Unit)

Primitive-specific version of forEachRemaining.

Link copied to clipboard

If SORTED by a Comparator, returns that Comparator. If SORTED in natural order, returns null. Otherwise (not SORTED), throws IllegalStateException.

Link copied to clipboard

Convenience method returning estimateSize if SIZED, else -1L.

Link copied to clipboard
open fun hasCharacteristics(characteristics: Int): Boolean

Returns true if this Spliterator's characteristics contain all of the given characteristics.

Link copied to clipboard
abstract override fun tryAdvance(action: (Double) -> Unit): Boolean

Primitive-specific version of tryAdvance.

Link copied to clipboard
abstract override fun trySplit(): Spliterator.OfDouble?

If this spliterator can be partitioned, returns a Spliterator covering elements that will, upon return, not be covered by this Spliterator.