Taal

IGatherer.Of Method

Definition

Overloads

Name Description
Of(IGatherer+IIntegrator)

Creates a stateless gatherer that supports parallel evaluation.

Of(IGatherer+IIntegrator, IBiConsumer)

Creates a stateless gatherer with a final action and support for parallel evaluation.

Of(ISupplier, IGatherer+IIntegrator, IBinaryOperator, IBiConsumer)

Creates a gatherer from its state, integration, combination, and completion functions.

Of(IGatherer+IIntegrator)

Creates a stateless gatherer that supports parallel evaluation.

[Android.Runtime.Register("of", "(Ljava/util/stream/Gatherer$Integrator;)Ljava/util/stream/Gatherer;", "", ApiSince=36)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })]
public static Java.Util.Streams.IGatherer? Of(Java.Util.Streams.IGatherer.IIntegrator? integrator);
[<Android.Runtime.Register("of", "(Ljava/util/stream/Gatherer$Integrator;)Ljava/util/stream/Gatherer;", "", ApiSince=36)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })>]
static member Of : Java.Util.Streams.IGatherer.IIntegrator -> Java.Util.Streams.IGatherer

Parameters

integrator
IGatherer.IIntegrator

The function that processes each input element and can send results downstream.

Returns

A new gatherer that uses integrator.

Attributes

Remarks

This overload uses the default initializer, a combiner for stateless parallel evaluation, and no additional end-of-input action. The integration function must be non-null.

Applies to

Of(IGatherer+IIntegrator, IBiConsumer)

Creates a stateless gatherer with a final action and support for parallel evaluation.

[Android.Runtime.Register("of", "(Ljava/util/stream/Gatherer$Integrator;Ljava/util/function/BiConsumer;)Ljava/util/stream/Gatherer;", "", ApiSince=36)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })]
public static Java.Util.Streams.IGatherer? Of(Java.Util.Streams.IGatherer.IIntegrator? integrator, Java.Util.Functions.IBiConsumer? finisher);
[<Android.Runtime.Register("of", "(Ljava/util/stream/Gatherer$Integrator;Ljava/util/function/BiConsumer;)Ljava/util/stream/Gatherer;", "", ApiSince=36)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })>]
static member Of : Java.Util.Streams.IGatherer.IIntegrator * Java.Util.Functions.IBiConsumer -> Java.Util.Streams.IGatherer

Parameters

integrator
IGatherer.IIntegrator

The function that processes each input element and can send results downstream.

finisher
IBiConsumer

The function that can send final results downstream when input processing ends.

Returns

A new gatherer that uses the supplied integration and completion functions.

Attributes

Remarks

This overload uses the default initializer and a combiner for stateless parallel evaluation. Both supplied functions must be non-null.

Applies to

Of(ISupplier, IGatherer+IIntegrator, IBinaryOperator, IBiConsumer)

Creates a gatherer from its state, integration, combination, and completion functions.

[Android.Runtime.Register("of", "(Ljava/util/function/Supplier;Ljava/util/stream/Gatherer$Integrator;Ljava/util/function/BinaryOperator;Ljava/util/function/BiConsumer;)Ljava/util/stream/Gatherer;", "", ApiSince=36)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T", "A", "R" })]
public static Java.Util.Streams.IGatherer? Of(Java.Util.Functions.ISupplier? initializer, Java.Util.Streams.IGatherer.IIntegrator? integrator, Java.Util.Functions.IBinaryOperator? combiner, Java.Util.Functions.IBiConsumer? finisher);
[<Android.Runtime.Register("of", "(Ljava/util/function/Supplier;Ljava/util/stream/Gatherer$Integrator;Ljava/util/function/BinaryOperator;Ljava/util/function/BiConsumer;)Ljava/util/stream/Gatherer;", "", ApiSince=36)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "A", "R" })>]
static member Of : Java.Util.Functions.ISupplier * Java.Util.Streams.IGatherer.IIntegrator * Java.Util.Functions.IBinaryOperator * Java.Util.Functions.IBiConsumer -> Java.Util.Streams.IGatherer

Parameters

initializer
ISupplier

The function that creates the intermediate state for an input partition.

integrator
IGatherer.IIntegrator

The function that processes an input element with the current state and downstream consumer.

combiner
IBinaryOperator

The function that joins two intermediate states into one.

finisher
IBiConsumer

The function that receives the final state and can send final results downstream.

Returns

A new gatherer that uses the four supplied functions.

Attributes

Remarks

The combiner permits evaluation of separate input partitions in parallel, unless it is the sequential-only function returned by DefaultCombiner(). All four functions must be non-null.

Applies to