Gatherer.Of Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Of(IGatherer+IIntegrator) |
Obsolete.
Creates a stateless gatherer that supports parallel evaluation. |
| Of(IGatherer+IIntegrator, IBiConsumer) |
Obsolete.
Creates a stateless gatherer with a final action and support for parallel evaluation. |
| Of(ISupplier, IGatherer+IIntegrator, IBinaryOperator, IBiConsumer) |
Obsolete.
Creates a gatherer from its state, integration, combination, and completion functions. |
Of(IGatherer+IIntegrator)
Caution
Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.
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" })]
[System.Obsolete("Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.")]
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" })>]
[<System.Obsolete("Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.")>]
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)
Caution
Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.
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" })]
[System.Obsolete("Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.")]
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" })>]
[<System.Obsolete("Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.")>]
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)
Caution
Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.
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" })]
[System.Obsolete("Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.")]
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" })>]
[<System.Obsolete("Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.")>]
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.