Optional.IsPresent Property

Definition

If a value is present, returns true, otherwise false.

public bool IsPresent { [Android.Runtime.Register("isPresent", "()Z", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isPresent", "()Z", "", ApiSince=24)>]
member this.IsPresent : bool

Property Value

true if a value is present, otherwise false

Attributes

Remarks

If a value is present, returns true, otherwise false.

Java documentation for java.util.Optional.isPresent().

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