Idioma

Gatherer.Of Método

Definição

Sobrecargas

Nome Descrição
Of(IGatherer+IIntegrator)
Obsoleto.

Cria um coletor sem estado que dá suporte à avaliação paralela.

Of(IGatherer+IIntegrator, IBiConsumer)
Obsoleto.

Cria um coletor sem estado com uma ação final e suporte para avaliação paralela.

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

Cria um coletor com base em seu estado, integração, combinação e funções de conclusão.

Of(IGatherer+IIntegrator)

Cuidado

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

Cria um coletor sem estado que dá suporte à avaliação paralela.

[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

Parâmetros

integrator
IGatherer.IIntegrator

A função que processa cada elemento de entrada e pode enviar resultados downstream.

Retornos

Um novo coletor que usa integrator.

Atributos

Comentários

Essa sobrecarga usa o inicializador padrão, um combinador para avaliação paralela sem estado e nenhuma ação adicional de fim de entrada. A função de integração deve ser não nula.

Aplica-se a

Of(IGatherer+IIntegrator, IBiConsumer)

Cuidado

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

Cria um coletor sem estado com uma ação final e suporte para avaliação paralela.

[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

Parâmetros

integrator
IGatherer.IIntegrator

A função que processa cada elemento de entrada e pode enviar resultados downstream.

finisher
IBiConsumer

A função que pode enviar resultados finais downstream quando o processamento de entrada termina.

Retornos

Um novo coletor que usa as funções de integração e conclusão fornecidas.

Atributos

Comentários

Essa sobrecarga usa o inicializador padrão e um combinador para avaliação paralela sem estado. Ambas as funções fornecidas devem ser não nulas.

Aplica-se a

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

Cuidado

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

Cria um coletor com base em seu estado, integração, combinação e funções de conclusão.

[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

Parâmetros

initializer
ISupplier

A função que cria o estado intermediário para uma partição de entrada.

integrator
IGatherer.IIntegrator

A função que processa um elemento de entrada com o estado atual e o consumidor downstream.

combiner
IBinaryOperator

A função que une dois estados intermediários em um.

finisher
IBiConsumer

A função que recebe o estado final e pode enviar resultados finais downstream.

Retornos

Um novo coletor que usa as quatro funções fornecidas.

Atributos

Comentários

O combinador permite a avaliação de partições de entrada separadas em paralelo, a menos que seja a função somente sequencial retornada por DefaultCombiner(). Todas as quatro funções devem ser não nulas.

Aplica-se a