public enum CopticMonth extends Enum<CopticMonth> implements ChronoCondition<CopticCalendar>
The Coptic calendar defines 13 Coptic months.
| Enum Constant and Description |
|---|
AMSHIR
The 6th month of Coptic calendar with 30 days.
|
BABA
The 2nd month of Coptic calendar with 30 days.
|
BARAMHAT
The 7th month of Coptic calendar with 30 days.
|
BARAMOUDA
The 8th month of Coptic calendar with 30 days.
|
BASHANS
The 9th month of Coptic calendar with 30 days.
|
EPEP
The 11th month of Coptic calendar with 30 days.
|
HATOR
The 3rd month of Coptic calendar with 30 days.
|
KIAHK
The 4th month of Coptic calendar with 30 days.
|
MESRA
The 12th month of Coptic calendar with 30 days.
|
NASIE
The 13th month of Coptic calendar with 5 or 6 days (if in leap year).
|
PAONA
The 10th month of Coptic calendar with 30 days.
|
TOBA
The 5th month of Coptic calendar with 30 days.
|
TOUT
The 1st month of Coptic 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(CopticCalendar context)
Decides if given context matches this condition.
|
static CopticMonth |
valueOf(int month)
Gets the enum-constant which corresponds to the given numerical value.
|
static CopticMonth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CopticMonth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CopticMonth TOUT
public static final CopticMonth BABA
public static final CopticMonth HATOR
public static final CopticMonth KIAHK
public static final CopticMonth TOBA
public static final CopticMonth AMSHIR
public static final CopticMonth BARAMHAT
public static final CopticMonth BARAMOUDA
public static final CopticMonth BASHANS
public static final CopticMonth PAONA
public static final CopticMonth EPEP
public static final CopticMonth MESRA
public static final CopticMonth NASIE
public static CopticMonth[] values()
for (CopticMonth c : CopticMonth.values()) System.out.println(c);
public static CopticMonth 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 CopticMonth valueOf(int month)
Gets the enum-constant which corresponds to the given numerical value.
month - coptic 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(CopticCalendar 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<CopticCalendar>test in interface ChronoCondition<CopticCalendar>context - context as base of testing this conditiontrue if given time context matches this condition
else falseCopyright © 2014–2021. All rights reserved.