public enum MinguoEra extends java.lang.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 |
|---|---|
java.lang.String |
getDisplayName(java.util.Locale locale)
Equivalent to the expression
getDisplayName(locale, TextWidth.WIDE). |
java.lang.String |
getDisplayName(java.util.Locale locale,
TextWidth width)
Gets the description text dependent on the locale and style
parameters.
|
int |
getValue()
Yields an ordinal number which is scaled such that every era
which contains the ISO-date of UTC-epoch [1972-01-01] will have
the associated value
1. |
static MinguoEra |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
CalendarEraYields an ordinal number which is scaled such that every era
which contains the ISO-date of UTC-epoch [1972-01-01] will have
the associated value 1.
Attention: This number is neither necessarily unique nor does it imply any chronological order.
getValue in interface CalendarErapublic java.lang.String getDisplayName(java.util.Locale locale)
Equivalent to the expression getDisplayName(locale, TextWidth.WIDE).
locale - language settingnull)getDisplayName(Locale, TextWidth)public java.lang.String getDisplayName(java.util.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)