public enum EthiopianMonth extends Enum<EthiopianMonth> implements ChronoCondition<EthiopianCalendar>
The Ethiopian calendar defines 13 months like the Coptic calendar.
| Enum Constant and Description |
|---|
GENBOT
The 9th month of Ethiopian calendar with 30 days.
|
HAMLE
The 11th month of Ethiopian calendar with 30 days.
|
HEDAR
The 3rd month of Ethiopian calendar with 30 days.
|
MEGABIT
The 7th month of Ethiopian calendar with 30 days.
|
MESKEREM
The 1st month of Ethiopian calendar with 30 days.
|
MIAZIA
The 8th month of Ethiopian calendar with 30 days.
|
NEHASSE
The 12th month of Ethiopian calendar with 30 days.
|
PAGUMEN
The 13th month of Ethiopian calendar with 5 or 6 days (if in leap year).
|
SENE
The 10th month of Ethiopian calendar with 30 days.
|
TAHSAS
The 4th month of Ethiopian calendar with 30 days.
|
TEKEMT
The 2nd month of Ethiopian calendar with 30 days.
|
TER
The 5th month of Ethiopian calendar with 30 days.
|
YEKATIT
The 6th month of Ethiopian calendar with 30 days.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName(Locale locale)
Equivalent to the expression
getDisplayName(locale, TextWidth.WIDE, OutputContext.FORMAT). |
String |
getDisplayName(Locale locale,
TextWidth width,
OutputContext context)
Gets the description text dependent on the locale and style
parameters.
|
int |
getValue()
Gets the corresponding numerical value.
|
boolean |
test(EthiopianCalendar context)
Decides if given context matches this condition.
|
static EthiopianMonth |
valueOf(int month)
Gets the enum-constant which corresponds to the given numerical value.
|
static EthiopianMonth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EthiopianMonth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EthiopianMonth MESKEREM
public static final EthiopianMonth TEKEMT
public static final EthiopianMonth HEDAR
public static final EthiopianMonth TAHSAS
public static final EthiopianMonth TER
public static final EthiopianMonth YEKATIT
public static final EthiopianMonth MEGABIT
public static final EthiopianMonth MIAZIA
public static final EthiopianMonth GENBOT
public static final EthiopianMonth SENE
public static final EthiopianMonth HAMLE
public static final EthiopianMonth NEHASSE
public static final EthiopianMonth PAGUMEN
public static EthiopianMonth[] values()
for (EthiopianMonth c : EthiopianMonth.values()) System.out.println(c);
public static EthiopianMonth 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 static EthiopianMonth valueOf(int month)
Gets the enum-constant which corresponds to the given numerical value.
month - Ethiopian month in the range [1-13]IllegalArgumentException - if given argument is out of rangepublic int getValue()
Gets the corresponding numerical value.
public String getDisplayName(Locale locale)
Equivalent to the expression
getDisplayName(locale, TextWidth.WIDE, OutputContext.FORMAT).
locale - language settingnull)getDisplayName(Locale, TextWidth, OutputContext)public String getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters.
The second argument controls the width of description while the third argument is only relevant for languages which make a difference between stand-alone forms and embedded text forms (does not matter in English).
locale - language settingwidth - text widthcontext - output contextnull)public boolean test(EthiopianCalendar context)
ChronoConditionDecides if given context matches this condition.
Due to better readability it is recommended to use following equivalent approach instead of this method::
import static net.time4j.Weekday.SATURDAY; import static net.time4j.Month.JANUARY; PlainDate date = PlainDate.of(2014, JANUARY, 25); System.out.println(SATURDAY.test(date)); // direct use System.out.println(date.matches(SATURDAY)); // recommended callback
test in interface Predicate<EthiopianCalendar>test in interface ChronoCondition<EthiopianCalendar>context - context as base of testing this conditiontrue if given time context matches this condition
else falseCopyright © 2014–2021. All rights reserved.