Liking cljdoc? Tell your friends :D

jdk.util.stream.StreamSupport

Low-level utility methods for creating and manipulating streams.

This class is mostly for library writers presenting stream views of data structures; most static stream methods intended for end users are in the various Stream classes.

Low-level utility methods for creating and manipulating streams.

This class is mostly for library writers presenting stream views
of data structures; most static stream methods intended for end users are in
the various Stream classes.
raw docstring

*double-streamclj

(*double-stream spliterator parallel)
(*double-stream supplier characteristics parallel)

Creates a new sequential or parallel DoubleStream from a Supplier of Spliterator.OfDouble.

The Supplier.get() method will be invoked on the supplier no more than once, and only after the terminal operation of the stream pipeline commences.

For spliterators that report a characteristic of IMMUTABLE or CONCURRENT, or that are late-binding, it is likely more efficient to use doubleStream(java.util.Spliterator.OfDouble, boolean) instead. The use of a Supplier in this form provides a level of indirection that reduces the scope of potential interference with the source. Since the supplier is only invoked after the terminal operation commences, any modifications to the source up to the start of the terminal operation are reflected in the stream result. See Non-Interference for more details.

supplier - A Supplier of a Spliterator.OfDouble - java.util.function.Supplier characteristics - Spliterator characteristics of the supplied Spliterator.OfDouble. The characteristics must be equal to supplier.get().characteristics(), otherwise undefined behavior may occur when terminal operation commences. - int parallel - if true then the returned stream is a parallel stream; if false the returned stream is a sequential stream. - boolean

returns: a new sequential or parallel DoubleStream - java.util.stream.DoubleStream

Creates a new sequential or parallel DoubleStream from a
 Supplier of Spliterator.OfDouble.

 The Supplier.get() method will be invoked on the supplier no
 more than once, and only after the terminal operation of the stream pipeline
 commences.

 For spliterators that report a characteristic of IMMUTABLE
 or CONCURRENT, or that are
 late-binding, it is likely
 more efficient to use doubleStream(java.util.Spliterator.OfDouble, boolean)
 instead.
 The use of a Supplier in this form provides a level of
 indirection that reduces the scope of potential interference with the
 source.  Since the supplier is only invoked after the terminal operation
 commences, any modifications to the source up to the start of the
 terminal operation are reflected in the stream result.  See
 Non-Interference for
 more details.

supplier - A Supplier of a Spliterator.OfDouble - `java.util.function.Supplier`
characteristics - Spliterator characteristics of the supplied Spliterator.OfDouble. The characteristics must be equal to supplier.get().characteristics(), otherwise undefined behavior may occur when terminal operation commences. - `int`
parallel - if true then the returned stream is a parallel stream; if false the returned stream is a sequential stream. - `boolean`

returns: a new sequential or parallel DoubleStream - `java.util.stream.DoubleStream`
raw docstring

*int-streamclj

(*int-stream spliterator parallel)
(*int-stream supplier characteristics parallel)

Creates a new sequential or parallel IntStream from a Supplier of Spliterator.OfInt.

The Supplier.get() method will be invoked on the supplier no more than once, and only after the terminal operation of the stream pipeline commences.

For spliterators that report a characteristic of IMMUTABLE or CONCURRENT, or that are late-binding, it is likely more efficient to use intStream(java.util.Spliterator.OfInt, boolean) instead. The use of a Supplier in this form provides a level of indirection that reduces the scope of potential interference with the source. Since the supplier is only invoked after the terminal operation commences, any modifications to the source up to the start of the terminal operation are reflected in the stream result. See Non-Interference for more details.

supplier - a Supplier of a Spliterator.OfInt - java.util.function.Supplier characteristics - Spliterator characteristics of the supplied Spliterator.OfInt. The characteristics must be equal to supplier.get().characteristics(), otherwise undefined behavior may occur when terminal operation commences. - int parallel - if true then the returned stream is a parallel stream; if false the returned stream is a sequential stream. - boolean

returns: a new sequential or parallel IntStream - java.util.stream.IntStream

Creates a new sequential or parallel IntStream from a
 Supplier of Spliterator.OfInt.

 The Supplier.get() method will be invoked on the supplier no
 more than once, and only after the terminal operation of the stream pipeline
 commences.

 For spliterators that report a characteristic of IMMUTABLE
 or CONCURRENT, or that are
 late-binding, it is likely
 more efficient to use intStream(java.util.Spliterator.OfInt, boolean)
 instead.
 The use of a Supplier in this form provides a level of
 indirection that reduces the scope of potential interference with the
 source.  Since the supplier is only invoked after the terminal operation
 commences, any modifications to the source up to the start of the
 terminal operation are reflected in the stream result.  See
 Non-Interference for
 more details.

supplier - a Supplier of a Spliterator.OfInt - `java.util.function.Supplier`
characteristics - Spliterator characteristics of the supplied Spliterator.OfInt. The characteristics must be equal to supplier.get().characteristics(), otherwise undefined behavior may occur when terminal operation commences. - `int`
parallel - if true then the returned stream is a parallel stream; if false the returned stream is a sequential stream. - `boolean`

returns: a new sequential or parallel IntStream - `java.util.stream.IntStream`
raw docstring

*long-streamclj

(*long-stream spliterator parallel)
(*long-stream supplier characteristics parallel)

Creates a new sequential or parallel LongStream from a Supplier of Spliterator.OfLong.

The Supplier.get() method will be invoked on the supplier no more than once, and only after the terminal operation of the stream pipeline commences.

For spliterators that report a characteristic of IMMUTABLE or CONCURRENT, or that are late-binding, it is likely more efficient to use longStream(java.util.Spliterator.OfLong, boolean) instead. The use of a Supplier in this form provides a level of indirection that reduces the scope of potential interference with the source. Since the supplier is only invoked after the terminal operation commences, any modifications to the source up to the start of the terminal operation are reflected in the stream result. See Non-Interference for more details.

supplier - a Supplier of a Spliterator.OfLong - java.util.function.Supplier characteristics - Spliterator characteristics of the supplied Spliterator.OfLong. The characteristics must be equal to supplier.get().characteristics(), otherwise undefined behavior may occur when terminal operation commences. - int parallel - if true then the returned stream is a parallel stream; if false the returned stream is a sequential stream. - boolean

returns: a new sequential or parallel LongStream - java.util.stream.LongStream

Creates a new sequential or parallel LongStream from a
 Supplier of Spliterator.OfLong.

 The Supplier.get() method will be invoked on the supplier no
 more than once, and only after the terminal operation of the stream pipeline
 commences.

 For spliterators that report a characteristic of IMMUTABLE
 or CONCURRENT, or that are
 late-binding, it is likely
 more efficient to use longStream(java.util.Spliterator.OfLong, boolean)
 instead.
 The use of a Supplier in this form provides a level of
 indirection that reduces the scope of potential interference with the
 source.  Since the supplier is only invoked after the terminal operation
 commences, any modifications to the source up to the start of the
 terminal operation are reflected in the stream result.  See
 Non-Interference for
 more details.

supplier - a Supplier of a Spliterator.OfLong - `java.util.function.Supplier`
characteristics - Spliterator characteristics of the supplied Spliterator.OfLong. The characteristics must be equal to supplier.get().characteristics(), otherwise undefined behavior may occur when terminal operation commences. - `int`
parallel - if true then the returned stream is a parallel stream; if false the returned stream is a sequential stream. - `boolean`

returns: a new sequential or parallel LongStream - `java.util.stream.LongStream`
raw docstring

*streamclj

(*stream spliterator parallel)
(*stream supplier characteristics parallel)

Creates a new sequential or parallel Stream from a Supplier of Spliterator.

The Supplier.get() method will be invoked on the supplier no more than once, and only after the terminal operation of the stream pipeline commences.

For spliterators that report a characteristic of IMMUTABLE or CONCURRENT, or that are late-binding, it is likely more efficient to use stream(java.util.Spliterator, boolean) instead. The use of a Supplier in this form provides a level of indirection that reduces the scope of potential interference with the source. Since the supplier is only invoked after the terminal operation commences, any modifications to the source up to the start of the terminal operation are reflected in the stream result. See Non-Interference for more details.

supplier - a Supplier of a Spliterator - java.util.function.Supplier characteristics - Spliterator characteristics of the supplied Spliterator. The characteristics must be equal to supplier.get().characteristics(), otherwise undefined behavior may occur when terminal operation commences. - int parallel - if true then the returned stream is a parallel stream; if false the returned stream is a sequential stream. - boolean

returns: a new sequential or parallel Stream - <T> java.util.stream.Stream<T>

Creates a new sequential or parallel Stream from a
 Supplier of Spliterator.

 The Supplier.get() method will be invoked on the supplier no
 more than once, and only after the terminal operation of the stream pipeline
 commences.

 For spliterators that report a characteristic of IMMUTABLE
 or CONCURRENT, or that are
 late-binding, it is likely
 more efficient to use stream(java.util.Spliterator, boolean)
 instead.
 The use of a Supplier in this form provides a level of
 indirection that reduces the scope of potential interference with the
 source.  Since the supplier is only invoked after the terminal operation
 commences, any modifications to the source up to the start of the
 terminal operation are reflected in the stream result.  See
 Non-Interference for
 more details.

supplier - a Supplier of a Spliterator - `java.util.function.Supplier`
characteristics - Spliterator characteristics of the supplied Spliterator. The characteristics must be equal to supplier.get().characteristics(), otherwise undefined behavior may occur when terminal operation commences. - `int`
parallel - if true then the returned stream is a parallel stream; if false the returned stream is a sequential stream. - `boolean`

returns: a new sequential or parallel Stream - `<T> java.util.stream.Stream<T>`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close