java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.christian.OrthodoxEaster
All Implemented Interfaces:
Function<Integer,LocalDate>, Predicate<Integer>, Observance, EasterObservance

public class OrthodoxEaster extends AbstractObservance implements EasterObservance
Observance of Orthodox Easter as recognized by the Orthodox church. This class implements the algorithm for Easter calculation as published by Carl Friedrich Gauss.

Due to the evolution of the computation of Easter Sunday during the early-to-medieval period of the Christian church, this implementation of the Gauss algorithm is only valid for years 530 - 3399 AD.

Author:
Dave Joyce
  • Field Details

    • MIN_VALID_YEAR

      public static final int MIN_VALID_YEAR
      See Also:
    • MAX_VALID_YEAR

      public static final int MAX_VALID_YEAR
      See Also:
    • YEAR_RANGE_ADJUSTMENT_MATRIX

      protected static final int[][] YEAR_RANGE_ADJUSTMENT_MATRIX
  • Constructor Details

    • OrthodoxEaster

      public OrthodoxEaster()
  • Method Details

    • computeDate

      protected LocalDate computeDate(int year)
      Description copied from class: AbstractObservance
      Compute the date for this observance in the given year. Only called when AbstractObservance.isValidYear(int) returns true.
      Specified by:
      computeDate in class AbstractObservance
      Parameters:
      year - the year for which to compute the date
      Returns:
      computed holiday date
    • isValidYear

      protected boolean isValidYear(int year)
      Description copied from class: AbstractObservance
      Determine whether this observance applies in the given year. Defaults to true (all years are valid).
      Overrides:
      isValidYear in class AbstractObservance
      Parameters:
      year - the year to test
      Returns:
      true if this observance applies