Spliterator
Spliterator:
object
Defined in: src/stream/Spliterator.ts:11
Characteristic flags (same bit values as the reference), combined with bitwise OR. Report only flags that are
true: the stream engine trusts them (distinct() on a DISTINCT source and count() on a SIZED one skip work).
Type Declaration
Section titled “Type Declaration”CONCURRENT
Section titled “CONCURRENT”
readonlyCONCURRENT:4096=0x00001000
The source may change safely during traversal.
DISTINCT
Section titled “DISTINCT”
readonlyDISTINCT:1=0x00000001
No two elements are equals.
IMMUTABLE
Section titled “IMMUTABLE”
readonlyIMMUTABLE:1024=0x00000400
The source cannot change during traversal.
NONNULL
Section titled “NONNULL”
readonlyNONNULL:256=0x00000100
No element is null.
ORDERED
Section titled “ORDERED”
readonlyORDERED:16=0x00000010
Elements have a defined encounter order.
readonlySIZED:64=0x00000040
estimateSize() is exact before traversal.
SORTED
Section titled “SORTED”
readonlySORTED:4=0x00000004
Elements follow getComparator() (or natural order); implies ORDERED.
SUBSIZED
Section titled “SUBSIZED”
readonlySUBSIZED:16384=0x00004000
Every spliterator trySplit() returns is SIZED and SUBSIZED too.