Sdílet prostřednictvím


OptionalDouble.OrElseGet(IDoubleSupplier) Method

Definition

If a value is present, returns the value, otherwise returns the result produced by the supplying function.

[Android.Runtime.Register("orElseGet", "(Ljava/util/function/DoubleSupplier;)D", "", ApiSince=24)]
public double OrElseGet (Java.Util.Functions.IDoubleSupplier? supplier);
[<Android.Runtime.Register("orElseGet", "(Ljava/util/function/DoubleSupplier;)D", "", ApiSince=24)>]
member this.OrElseGet : Java.Util.Functions.IDoubleSupplier -> double

Parameters

supplier
IDoubleSupplier

the supplying function that produces a value to be returned

Returns

the value, if present, otherwise the result produced by the supplying function

Attributes

Remarks

Java documentation for java.util.OptionalDouble.orElseGet(java.util.function.DoubleSupplier).

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