Enum Class Computus

java.lang.Object
java.lang.Enum<Computus>
net.time4j.history.Computus
All Implemented Interfaces:
Serializable, Comparable<Computus>, java.lang.constant.Constable

public enum Computus extends Enum<Computus>

Provides procedures how to determine Easter Sunday.

The algorithms are based on the work of Heiner Lichtenberg in 1997.

Since:
3.16/4.13
Author:
Meno Hochschild
  • Enum Constant Details

    • WESTERN

      public static final Computus WESTERN

      Applies the Julian/Gregorian calendar and is used by catholic and protestantic churches.

    • EASTERN

      public static final Computus EASTERN

      Applies the Julian calendar and is used by Orthodox church in East Europe.

  • Method Details

    • values

      public static Computus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Computus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • easterSunday

      public PlainDate easterSunday(int annoDomini)

      Calculates the date of Easter Sunday.

      Parameters:
      annoDomini - calendar year related to era AD
      Returns:
      calendar date of Easter Sunday (ISO-8601)
      Throws:
      IllegalArgumentException - if given year is before AD 532 (the first table from Beda Venerabilis)
      Since:
      3.16/4.13