public enum KoreanEra extends Enum<KoreanEra> implements CalendarEra
The Korean calendar supports the danki-system which is now only historic.
| Enum Constant and Description |
|---|
DANGI
Called after the legendary founder Dangun of the first Korean kingdom Gojoseon in year BC 2333.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName(Locale locale)
Equivalent to the expression
getDisplayName(locale, TextWidth.WIDE). |
String |
getDisplayName(Locale locale,
TextWidth width)
Gets the description text dependent on the locale and style parameters.
|
static KoreanEra |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KoreanEra[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final KoreanEra DANGI
It was used in South Korea from 1952 until 1961, in North Korea still before 1997.
public static KoreanEra[] values()
for (KoreanEra c : KoreanEra.values()) System.out.println(c);
public static KoreanEra valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getDisplayName(Locale locale)
Equivalent to the expression getDisplayName(locale, TextWidth.WIDE).
locale - language settingnull)getDisplayName(Locale, TextWidth)public String getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.
The second argument controls the width of description.
locale - language settingwidth - text widthnull)Copyright © 2014–2021. All rights reserved.