Skip to content

Commit

Permalink
Add Yaaleh Veyavo and Al Hanissim
Browse files Browse the repository at this point in the history
Closes #198
  • Loading branch information
KosherJava committed Dec 5, 2022
1 parent 07375e1 commit 4ac62f3
Showing 1 changed file with 36 additions and 3 deletions.
Expand Up @@ -372,12 +372,12 @@ public boolean isMoridHatalRecited(JewishCalendar jewishCalendar) {
}

/**
* Returns if <em>hallel</em> is recited on the day in question. This will return true for both <em>hallel shalem</em>
* and <em>chatzi hallel</em>. See {@link #isHallelShalemRecited(JewishCalendar)} to know if the complete <em>hallel</em>
* Returns if <em>Hallel</em> is recited on the day in question. This will return true for both <em>Hallel shalem</em>
* and <em>Chatzi Hallel</em>. See {@link #isHallelShalemRecited(JewishCalendar)} to know if the complete <em>Hallel</em>
* is recited.
*
* @param jewishCalendar the Jewish calendar day.
* @return if <em>hallel</em> is recited.
* @return if <em>Hallel</em> is recited.
* @see #isHallelShalemRecited(JewishCalendar)
*/
public boolean isHallelRecited(JewishCalendar jewishCalendar) {
Expand Down Expand Up @@ -440,6 +440,39 @@ public boolean isHallelShalemRecited(JewishCalendar jewishCalendar) {
return false;
}

/**
* Returns if <a href="https://en.wikipedia.org/wiki/Al_HaNissim"><em>Al HaNissim</em></a> is recited on the day in question.
*
* @param jewishCalendar the Jewish calendar day.
* @return if <em>al hanissim</em> is recited.
* @see JewishCalendar#isChanukah()
* @see JewishCalendar#isPurim()
* @see JewishCalendar#getIsMukafChoma()
*/
public boolean isAlHanissimRecited(JewishCalendar jewishCalendar) {
return jewishCalendar.isPurim() || jewishCalendar.isChanukah();
}

/**
* Returns if <em>Yaaleh Veyavo</em> is recited on the day in question.
*
* @param jewishCalendar the Jewish calendar day.
* @return if <em>Yaaleh Veyavo</em> is recited.
* @see JewishCalendar#isPesach()
* @see JewishCalendar#isShavuos()
* @see JewishCalendar#isRoshHashana()
* @see JewishCalendar#isYomKippur()
* @see JewishCalendar#isSuccos()
* @see JewishCalendar#isShminiAtzeres()
* @see JewishCalendar#isSimchasTorah()
* @see JewishCalendar#isRoshChodesh()
*/
public boolean isYaalehVeyavoRecited(JewishCalendar jewishCalendar) {
return jewishCalendar.isPesach() || jewishCalendar.isShavuos() ||jewishCalendar.isRoshHashana() || jewishCalendar.isYomKippur()
|| jewishCalendar.isSuccos() || jewishCalendar.isShminiAtzeres() || jewishCalendar.isSimchasTorah()
|| jewishCalendar.isRoshChodesh();
}

/**
* Is <em>tachanun</em> recited during the week of Purim, from the 11th through the 17th of {@link
* JewishDate#ADAR <em>Adar</em>} (on a non-leap year, or {@link JewishDate#ADAR_II <em>Adar II</em>} on a leap year). Some
Expand Down

0 comments on commit 4ac62f3

Please sign in to comment.