Aracılığıyla paylaş


OptionalDouble.IfPresent(IDoubleConsumer) Method

Definition

If a value is present, performs the given action with the value, otherwise does nothing.

[Android.Runtime.Register("ifPresent", "(Ljava/util/function/DoubleConsumer;)V", "", ApiSince=24)]
public void IfPresent (Java.Util.Functions.IDoubleConsumer? action);
[<Android.Runtime.Register("ifPresent", "(Ljava/util/function/DoubleConsumer;)V", "", ApiSince=24)>]
member this.IfPresent : Java.Util.Functions.IDoubleConsumer -> unit

Parameters

action
IDoubleConsumer

the action to be performed, if a value is present

Attributes

Remarks

Java documentation for java.util.OptionalDouble.ifPresent(java.util.function.DoubleConsumer).

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