Udostępnij za pośrednictwem


DayOfWeek.Of(Int32) Method

Definition

Obtains an instance of DayOfWeek from an int value.

[Android.Runtime.Register("of", "(I)Ljava/time/DayOfWeek;", "", ApiSince=26)]
public static Java.Time.DayOfWeek? Of (int dayOfWeek);
[<Android.Runtime.Register("of", "(I)Ljava/time/DayOfWeek;", "", ApiSince=26)>]
static member Of : int -> Java.Time.DayOfWeek

Parameters

dayOfWeek
Int32

the day-of-week to represent, from 1 (Monday) to 7 (Sunday)

Returns

the day-of-week singleton, not null

Attributes

Remarks

Obtains an instance of DayOfWeek from an int value.

DayOfWeek is an enum representing the 7 days of the week. This factory allows the enum to be obtained from the int value. The int value follows the ISO-8601 standard, from 1 (Monday) to 7 (Sunday).

Java documentation for java.time.DayOfWeek.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