Language

IGatherer.IIntegrator.Integrate(Object, Object, IGatherer+IDownstream) Method

Definition

Processes one input element using the current state and downstream consumer.

[Android.Runtime.Register("integrate", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/stream/Gatherer$Downstream;)Z", "GetIntegrate_Ljava_lang_Object_Ljava_lang_Object_Ljava_util_stream_Gatherer_Downstream_Handler:Java.Util.Streams.IGatherer/IIntegratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public bool Integrate(Java.Lang.Object? state, Java.Lang.Object? element, Java.Util.Streams.IGatherer.IDownstream? downstream);
[<Android.Runtime.Register("integrate", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/stream/Gatherer$Downstream;)Z", "GetIntegrate_Ljava_lang_Object_Ljava_lang_Object_Ljava_util_stream_Gatherer_Downstream_Handler:Java.Util.Streams.IGatherer/IIntegratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member Integrate : Java.Lang.Object * Java.Lang.Object * Java.Util.Streams.IGatherer.IDownstream -> bool

Parameters

state
Object

The current intermediate state of the gathering operation.

element
Object

The input element to process.

downstream
IGatherer.IDownstream

The consumer to which this call can send result elements.

Returns

true to request more input elements; false to stop integration.

Attributes

Remarks

This call can inspect or update the state and send zero or more results downstream. Returning false signals that no further input elements are wanted; it does not describe the number of results sent downstream.

Applies to