Optional.Empty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.