Package net.time4j.history
Enum Class Computus
- All Implemented Interfaces:
Serializable
,Comparable<Computus>
,java.lang.constant.Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptioneasterSunday(int annoDomini)
Calculates the date of Easter Sunday.static Computus
Returns the enum constant of this class with the specified name.static Computus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
WESTERN
Applies the Julian/Gregorian calendar and is used by catholic and protestantic churches.
-
EASTERN
Applies the Julian calendar and is used by Orthodox church in East Europe.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
easterSunday
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
-