Share via


Optional.Empty Method

Definition

Returns an empty Optional instance.

[Android.Runtime.Register("empty", "()Ljava/util/Optional;", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.Optional? Empty ();
[<Android.Runtime.Register("empty", "()Ljava/util/Optional;", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member Empty : unit -> Java.Util.Optional

Returns

an empty Optional

Attributes

Remarks

Returns an empty Optional instance. No value is present for this Optional.

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

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