共用方式為


ThaiBuddhistEra.Of(Int32) Method

Definition

Obtains an instance of ThaiBuddhistEra from an int value.

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

Parameters

thaiBuddhistEra
Int32

the era to represent, from 0 to 1

Returns

the BuddhistEra singleton, never null

Attributes

Remarks

Obtains an instance of ThaiBuddhistEra from an int value.

ThaiBuddhistEra is an enum representing the Thai Buddhist eras of BEFORE_BE/BE. This factory allows the enum to be obtained from the int value.

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