Share via


OptionalInt.Of(Int32) Method

Definition

Returns an OptionalInt describing the given value.

[Android.Runtime.Register("of", "(I)Ljava/util/OptionalInt;", "", ApiSince=24)]
public static Java.Util.OptionalInt? Of (int value);
[<Android.Runtime.Register("of", "(I)Ljava/util/OptionalInt;", "", ApiSince=24)>]
static member Of : int -> Java.Util.OptionalInt

Parameters

value
Int32

the value to describe

Returns

an OptionalInt with the value present

Attributes

Remarks

Java documentation for java.util.OptionalInt.of(int).

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