Skip to content
Buy me a coffee

DefinedGatherer

Defined in: src/stream/Gatherers.ts:24

What the factories here return: a Gatherer with every member defined.

  • Gatherer<T, A, R>

T

A

R

andThen<RR>(that): DefinedGatherer<T, any, RR>

Defined in: src/stream/Gatherers.ts:35

Returns a gatherer that feeds this one’s output into that; the same as gather(this).gather(that).

RR

Gatherer<R, any, RR>

DefinedGatherer<T, any, RR>

NullPointerException if that is null

GathererType.andThen


combiner(): (left, right) => A

Defined in: src/stream/Gatherers.ts:28

Returns the state combiner; Gatherer.defaultCombiner() for a sequential-only gatherer.

(left, right) => A

GathererType.combiner


finisher(): (state, downstream) => void

Defined in: src/stream/Gatherers.ts:30

Returns the finisher; Gatherer.defaultFinisher() when there is no finishing action.

(state, downstream) => void

GathererType.finisher


initializer(): () => A

Defined in: src/stream/Gatherers.ts:26

Returns the state initializer; Gatherer.defaultInitializer() for a stateless gatherer.

() => A

GathererType.initializer


integrator(): Integrator<A, T, R>

Defined in: src/stream/Gatherer.ts:39

Returns the Integrator called for each upstream element.

Integrator<A, T, R>

GathererType.integrator