JapaneseEra.ValueOf(String) Method

Definition

Returns the JapaneseEra with the name.

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/time/chrono/JapaneseEra;", "", ApiSince=26)]
public static Java.Time.Chrono.JapaneseEra? ValueOf (string? japaneseEra);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/time/chrono/JapaneseEra;", "", ApiSince=26)>]
static member ValueOf : string -> Java.Time.Chrono.JapaneseEra

Parameters

japaneseEra
String

the japaneseEra name; non-null

Returns

the JapaneseEra singleton, never null

Attributes

Remarks

Returns the JapaneseEra with the name.

The string must match exactly the name of the era. (Extraneous whitespace characters are not permitted.)

Valid era names are the names of eras returned from #values().

Java documentation for java.time.chrono.JapaneseEra.valueOf(java.lang.String).

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