Teanga

IGatherer.OfSequential Method

Definition

Overloads

Name Description
OfSequential(IGatherer+IIntegrator)

Creates a stateless gatherer for sequential evaluation.

OfSequential(ISupplier, IGatherer+IIntegrator)

Creates a sequential gatherer with the supplied state initializer and integration function.

OfSequential(IGatherer+IIntegrator, IBiConsumer)

Creates a stateless sequential gatherer with a final action.

OfSequential(ISupplier, IGatherer+IIntegrator, IBiConsumer)

Creates a sequential gatherer with state, integration, and completion functions.

OfSequential(IGatherer+IIntegrator)

Creates a stateless gatherer for sequential evaluation.

[Android.Runtime.Register("ofSequential", "(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? OfSequential(Java.Util.Streams.IGatherer.IIntegrator? integrator);
[<Android.Runtime.Register("ofSequential", "(Ljava/util/stream/Gatherer$Integrator;)Ljava/util/stream/Gatherer;", "", ApiSince=36)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })>]
static member OfSequential : 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 sequential gatherer that uses integrator.

Attributes

Remarks

This overload uses the default initializer, the sequential-only combiner, and no additional end-of-input action. The integration function must be non-null.

Applies to

OfSequential(ISupplier, IGatherer+IIntegrator)

Creates a sequential gatherer with the supplied state initializer and integration function.

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

Parameters

initializer
ISupplier

The function that creates the intermediate state for the gathering operation.

integrator
IGatherer.IIntegrator

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

Returns

A new sequential gatherer that uses the supplied functions.

Attributes

Remarks

This overload uses the sequential-only combiner and has no additional end-of-input action. Both supplied functions must be non-null.

Applies to

OfSequential(IGatherer+IIntegrator, IBiConsumer)

Creates a stateless sequential gatherer with a final action.

[Android.Runtime.Register("ofSequential", "(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? OfSequential(Java.Util.Streams.IGatherer.IIntegrator? integrator, Java.Util.Functions.IBiConsumer? finisher);
[<Android.Runtime.Register("ofSequential", "(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 OfSequential : 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 sequential gatherer that uses the supplied integration and completion functions.

Attributes

Remarks

This overload uses the default initializer and the sequential-only combiner. Both supplied functions must be non-null.

Applies to

OfSequential(ISupplier, IGatherer+IIntegrator, IBiConsumer)

Creates a sequential gatherer with state, integration, and completion functions.

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

Parameters

initializer
ISupplier

The function that creates the intermediate state for the gathering operation.

integrator
IGatherer.IIntegrator

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

finisher
IBiConsumer

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

Returns

A new sequential gatherer that uses the three supplied functions.

Attributes

Remarks

This overload uses the sequential-only combiner. The initializer supplies state for integration and for the final action. All three supplied functions must be non-null.

Applies to