StreamBuilder
Defined in: src/stream/Stream.ts:100
Builds a Stream by adding elements one at a time, then calling build() once. Returned by Stream.builder().
Type Parameters
Section titled “Type Parameters”T
Methods
Section titled “Methods”accept()
Section titled “accept()”accept(
t):void
Defined in: src/stream/Stream.ts:105
Adds an element (null allowed).
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”void
Throws
Section titled “Throws”IllegalStateException after build()
add(
t):StreamBuilder<T>
Defined in: src/stream/Stream.ts:110
Adds an element and returns this builder, for chaining.
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”StreamBuilder<T>
Throws
Section titled “Throws”IllegalStateException after build()
build()
Section titled “build()”build():
Stream<T>
Defined in: src/stream/Stream.ts:115
Returns an ordered, sized stream of the added elements in insertion order. The builder can then no longer be used.
Returns
Section titled “Returns”Stream<T>
Throws
Section titled “Throws”IllegalStateException if already built