ILongConsumer.AndThen(ILongConsumer) Method

Definition

Returns a composed LongConsumer that performs, in sequence, this operation followed by the after operation.

[Android.Runtime.Register("andThen", "(Ljava/util/function/LongConsumer;)Ljava/util/function/LongConsumer;", "GetAndThen_Ljava_util_function_LongConsumer_Handler:Java.Util.Functions.ILongConsumer, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public virtual Java.Util.Functions.ILongConsumer? AndThen (Java.Util.Functions.ILongConsumer? after);
[<Android.Runtime.Register("andThen", "(Ljava/util/function/LongConsumer;)Ljava/util/function/LongConsumer;", "GetAndThen_Ljava_util_function_LongConsumer_Handler:Java.Util.Functions.ILongConsumer, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member AndThen : Java.Util.Functions.ILongConsumer -> Java.Util.Functions.ILongConsumer
override this.AndThen : Java.Util.Functions.ILongConsumer -> Java.Util.Functions.ILongConsumer

Parameters

after
ILongConsumer

the operation to perform after this operation

Returns

a composed LongConsumer that performs in sequence this operation followed by the after operation

Attributes

Remarks

Returns a composed LongConsumer that performs, in sequence, this operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after operation will not be performed.

Java documentation for java.util.function.LongConsumer.andThen(java.util.function.LongConsumer).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to