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.
| Enum Constant and Description |
|---|
EASTERN
Applies the Julian calendar and is used by Orthodox church in East Europe.
|
WESTERN
Applies the Julian/Gregorian calendar and is used by catholic and protestantic churches.
|
| Modifier and Type | Method and Description |
|---|---|
PlainDate |
easterSunday(int annoDomini)
Calculates the date of Easter Sunday.
|
static Computus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Computus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Computus WESTERN
Applies the Julian/Gregorian calendar and is used by catholic and protestantic churches.
public static final Computus EASTERN
Applies the Julian calendar and is used by Orthodox church in East Europe.
public static Computus[] values()
for (Computus c : Computus.values()) System.out.println(c);
public static Computus 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 PlainDate easterSunday(int annoDomini)
Calculates the date of Easter Sunday.
annoDomini - calendar year related to era ADIllegalArgumentException - if given year is before AD 532 (the first table from Beda Venerabilis)Copyright © 2014–2017. All rights reserved.