public enum HebrewAnniversary extends Enum<HebrewAnniversary>
The Hebrew calendar has at least two important personal days which can be determined by the methods of this class.
| Enum Constant and Description |
|---|
BIRTHDAY
Marks the annual birthday in hebrew calendar.
|
YAHRZEIT
Marks the annual death day of a near relative in hebrew calendar.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFunction<CalendarDate,List<PlainDate>> |
inGregorianYear(int gyear)
Determines the input calendar date as original event date and determines the anniversary days of this event
in given gregorian year.
|
ChronoFunction<CalendarDate,HebrewCalendar> |
inHebrewYear(int hyear)
Determines the input calendar date as original event date and determines the anniversary day of this event
in given hebrew year.
|
static HebrewAnniversary |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HebrewAnniversary[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HebrewAnniversary BIRTHDAY
The underlying rule takes care of possible leap days (relevant for HESHVAN and KISLEV) and leap months. Example for determining the 13th birthday of a boy born in AM-5776-ADAR_I-30 (bar mitzvah):
HebrewCalendar birth = HebrewCalendar.of(5776, HebrewMonth.ADAR_I, 30);
assertThat(
birth.get(HebrewAnniversary.BIRTHDAY.inHebrewYear(birth.getYear() + 13)),
is(HebrewCalendar.of(5789, HebrewMonth.NISAN, 1)));
Note: The predefined method HebrewCalendar.barMitzvah() is simpler to use
for this special purpose.
public static final HebrewAnniversary YAHRZEIT
The rules follows the book "Calendrical Calculations" by Dershowitz/Reingold. Some Jewish communities might deviate from these rules, however.
public static HebrewAnniversary[] values()
for (HebrewAnniversary c : HebrewAnniversary.values()) System.out.println(c);
public static HebrewAnniversary 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 ChronoFunction<CalendarDate,HebrewCalendar> inHebrewYear(int hyear)
Determines the input calendar date as original event date and determines the anniversary day of this event in given hebrew year.
hyear - hebrew yearpublic ChronoFunction<CalendarDate,List<PlainDate>> inGregorianYear(int gyear)
Determines the input calendar date as original event date and determines the anniversary days of this event in given gregorian year.
gyear - gregorian yearCopyright © 2014–2021. All rights reserved.