Lenguaje

IGatherer.Of Método

Definición

Sobrecargas

Nombre Description
Of(IGatherer+IIntegrator)

Crea un recopilador sin estado que admite la evaluación en paralelo.

Of(IGatherer+IIntegrator, IBiConsumer)

Crea un recopilador sin estado con una acción final y compatibilidad con la evaluación en paralelo.

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

Crea un recopilador a partir de su estado, integración, combinación y funciones de finalización.

Of(IGatherer+IIntegrator)

Crea un recopilador sin estado que admite la evaluación en paralelo.

[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

Parámetros

integrator
IGatherer.IIntegrator

Función que procesa cada elemento de entrada y puede enviar resultados de bajada.

Devoluciones

Nuevo recopilador que usa integrator.

Atributos

Comentarios

Esta sobrecarga usa el inicializador predeterminado, un combinador para la evaluación en paralelo sin estado y ninguna acción adicional de fin de entrada. La función de integración debe ser no NULL.

Se aplica a

Of(IGatherer+IIntegrator, IBiConsumer)

Crea un recopilador sin estado con una acción final y compatibilidad con la evaluación en paralelo.

[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

Parámetros

integrator
IGatherer.IIntegrator

Función que procesa cada elemento de entrada y puede enviar resultados de bajada.

finisher
IBiConsumer

Función que puede enviar los resultados finales de bajada cuando finaliza el procesamiento de entrada.

Devoluciones

Nuevo recopilador que usa las funciones de integración y finalización proporcionadas.

Atributos

Comentarios

Esta sobrecarga usa el inicializador predeterminado y un combinador para la evaluación en paralelo sin estado. Ambas funciones proporcionadas deben ser no NULL.

Se aplica a

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

Crea un recopilador a partir de su estado, integración, combinación y funciones de finalización.

[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

Parámetros

initializer
ISupplier

Función que crea el estado intermedio para una partición de entrada.

integrator
IGatherer.IIntegrator

Función que procesa un elemento de entrada con el estado actual y el consumidor de bajada.

combiner
IBinaryOperator

Función que combina dos estados intermedios en uno.

finisher
IBiConsumer

Función que recibe el estado final y puede enviar resultados finales de bajada.

Devoluciones

Nuevo recopilador que usa las cuatro funciones proporcionadas.

Atributos

Comentarios

El combinador permite la evaluación de particiones de entrada independientes en paralelo, a menos que sea la función de solo secuencial devuelta por DefaultCombiner(). Las cuatro funciones deben ser no NULL.

Se aplica a