public enum JucheEra extends Enum<JucheEra> implements CalendarEra
The official North-Korean calendar supports only one era.
| Enum Constant and Description |
|---|
JUCHE
Counts years since the birth of North Korean state founder Kim Il Sung (1912).
|
| 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 JucheEra |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JucheEra[] |
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 JucheEra JUCHE
North Korea uses this era from year 1997 onwards.
public static JucheEra[] values()
for (JucheEra c : JucheEra.values()) System.out.println(c);
public static JucheEra 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.