Companion

object Companion

Types

Link copied to clipboard

Internal implementation class for creating a Spliterator from an Iterator. This mimics the logic from java.util.Spliterators.IteratorSpliterator.

Properties

Link copied to clipboard
const val CONCURRENT: Int = 4096

CONCURRENT: Source can be safely modified concurrently.

Link copied to clipboard
const val DISTINCT: Int = 1

DISTINCT: No two elements are equal (x.equals(y) is false).

Link copied to clipboard
const val IMMUTABLE: Int = 1024

IMMUTABLE: Source cannot be structurally modified during traversal.

Link copied to clipboard
const val NONNULL: Int = 256

NONNULL: Encountered elements will not be null.

Link copied to clipboard
const val ORDERED: Int = 16

ORDERED: Encounter order is defined and maintained.

Link copied to clipboard
const val SIZED: Int = 64

SIZED: estimateSize() is an exact count before traversal/split.

Link copied to clipboard
const val SORTED: Int = 4

SORTED: Encounter order follows a defined sort order (implies ORDERED).

Link copied to clipboard
const val SUBSIZED: Int = 16384

SUBSIZED: All spliterators resulting from trySplit() are SIZED and SUBSIZED.