public enum MinguoEra extends Enum<MinguoEra> implements CalendarEra
The Minguo calendar supports two eras related to the year 1912.
| Enum Constant and Description |
|---|
BEFORE_ROC
Used for dates before 1912-01-01.
|
ROC
Used for dates from 1912-01-01 or later.
|
| 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 MinguoEra |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MinguoEra[] |
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 MinguoEra BEFORE_ROC
public static final MinguoEra ROC
public static MinguoEra[] values()
for (MinguoEra c : MinguoEra.values()) System.out.println(c);
public static MinguoEra 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.