语言

Gatherer.Of 方法

定义

重载

名称 说明
Of(IGatherer+IIntegrator)
已过时.

创建支持并行评估的无状态收集器。

Of(IGatherer+IIntegrator, IBiConsumer)
已过时.

创建具有最终操作并支持并行评估的无状态收集器。

Of(ISupplier, IGatherer+IIntegrator, IBinaryOperator, IBiConsumer)
已过时.

从其状态、集成、组合和完成函数创建收集器。

Of(IGatherer+IIntegrator)

注意

Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.

创建支持并行评估的无状态收集器。

[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

参数

integrator
IGatherer.IIntegrator

处理每个输入元素并可以下游发送结果的函数。

返回

使用 integrator的新收集器。

特性

注解

此重载使用默认初始值设定项、无状态并行计算的组合器,并且没有额外的输入结束操作。 集成函数必须为非 null。

适用于

Of(IGatherer+IIntegrator, IBiConsumer)

注意

Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.

创建具有最终操作并支持并行评估的无状态收集器。

[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

参数

integrator
IGatherer.IIntegrator

处理每个输入元素并可以下游发送结果的函数。

finisher
IBiConsumer

可在输入处理结束时向下游发送最终结果的函数。

返回

使用提供的集成和完成函数的新收集器。

特性

注解

此重载使用默认初始值设定项和组合器进行无状态并行计算。 提供的两个函数都必须为非 null。

适用于

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

注意

Use 'Java.Util.Streams.IGatherer.Of'. This class will be removed in a future release.

从其状态、集成、组合和完成函数创建收集器。

[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

参数

initializer
ISupplier

为输入分区创建中间状态的函数。

integrator
IGatherer.IIntegrator

处理具有当前状态和下游使用者的输入元素的函数。

combiner
IBinaryOperator

将两个中间状态联接到一个状态的函数。

finisher
IBiConsumer

接收最终状态并可在下游发送最终结果的函数。

返回

使用四个提供的函数的新收集器。

特性

注解

组合器允许并行计算单独的输入分区,除非它是按顺序返回的 DefaultCombiner()仅顺序函数。 这四个函数都必须为非 null。

适用于