Optional.IsEmpty Property

Definition

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

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

Property Value

true if a value is not present, otherwise false

Attributes

Remarks

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

Added in 11.

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

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