public enum HijriMonth extends java.lang.Enum<HijriMonth> implements ChronoCondition<HijriCalendar>
The Hijri calendar defines 12 islamic months.
| Enum Constant and Description |
|---|
DHU_AL_HIJJAH |
DHU_AL_QIDAH |
JUMADA_I |
JUMADA_II |
MUHARRAM |
RABI_I |
RABI_II |
RAJAB |
RAMADAN |
SAFAR |
SHABAN |
SHAWWAL |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName(java.util.Locale locale)
Equivalent to the expression
getDisplayName(locale, TextWidth.WIDE, OutputContext.FORMAT). |
java.lang.String |
getDisplayName(java.util.Locale locale,
TextWidth width,
OutputContext context)
Gets the description text dependent on the locale and style
parameters.
|
int |
getValue()
Liefert den korrespondierenden kalendarischen Integer-Wert.
|
boolean |
test(HijriCalendar context)
Decides if given context matches this condition.
|
static HijriMonth |
valueOf(int month)
Gets the enum-constant which corresponds to the given numerical
value.
|
static HijriMonth |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HijriMonth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HijriMonth MUHARRAM
public static final HijriMonth SAFAR
public static final HijriMonth RABI_I
public static final HijriMonth RABI_II
public static final HijriMonth JUMADA_I
public static final HijriMonth JUMADA_II
public static final HijriMonth RAJAB
public static final HijriMonth SHABAN
public static final HijriMonth RAMADAN
public static final HijriMonth SHAWWAL
public static final HijriMonth DHU_AL_QIDAH
public static final HijriMonth DHU_AL_HIJJAH
public static HijriMonth[] values()
for (HijriMonth c : HijriMonth.values()) System.out.println(c);
public static HijriMonth 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 static HijriMonth valueOf(int month)
Gets the enum-constant which corresponds to the given numerical value.
month - islamic month in the range [1-12]java.lang.IllegalArgumentException - if given argument is out of rangepublic int getValue()
Liefert den korrespondierenden kalendarischen Integer-Wert.
public java.lang.String getDisplayName(java.util.Locale locale)
Equivalent to the expression
getDisplayName(locale, TextWidth.WIDE, OutputContext.FORMAT).
locale - language settingnull)getDisplayName(Locale, TextWidth, OutputContext)public java.lang.String getDisplayName(java.util.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(HijriCalendar 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 ChronoCondition<HijriCalendar>context - context as base of testing this conditiontrue if given time context matches this condition
else false