Interface Stream.Builder<T>

Type Parameters:
T - the type of stream elements
All Superinterfaces:
Consumer<T>
Enclosing interface:
Stream<T>

  • Method Summary

    Modifier and Type

    Method

    Description

    void

    accept(T t)

    Adds an element to the stream being built.

    add(T t)

    Adds an element to the stream being built.

    build()

    Builds the stream, transitioning this builder to the built state.

    Methods declared in interface Consumer

    andThen

    Modifier and Type

    Method

    Description

    Returns a composed Consumer that performs, in sequence, this operation followed by the after operation.

  • Method Details

    • accept

    • add

    • build