Enum Class FrenchRepublicanAlgorithm
- All Implemented Interfaces:
Serializable
,Comparable<FrenchRepublicanAlgorithm>
,java.lang.constant.Constable
- Since:
- 3.33/4.28
- Author:
- Meno Hochschild
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe standard legal algorithm of the French revolutionary calendar strictly based on autumnal equinox.This algorithmic variant proposed by Charles-Gilbert Romme (leader of the calendar commission) would have treated the republican year as leap year similar to the gregorian calendar rules. -
Method Summary
Modifier and TypeMethodDescriptionFormat attribute which helps to resolve algorithmic differences between various French republican dates.boolean
isLeapYear(int fyear)
Determines if given republican year is a leap year or not.static FrenchRepublicanAlgorithm
Returns the enum constant of this class with the specified name.static FrenchRepublicanAlgorithm[]
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
-
EQUINOX
The standard legal algorithm of the French revolutionary calendar strictly based on autumnal equinox. -
ROMME
This algorithmic variant proposed by Charles-Gilbert Romme (leader of the calendar commission) would have treated the republican year as leap year similar to the gregorian calendar rules.
Years divisible by four, but leaving out centuries unless divisible by 400 would have been considered as leap years, that is: 16, 20, 24, ..., 96, 104, etc. However, this proposal was never realized because Romme had soon be sent to the guillotine.
Important: This algorithm still applies the equinox rule for all dates before 1806-01-01, the date of the abolition of the French revolutionary calendar.
-
-
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
-
attribute
Format attribute which helps to resolve algorithmic differences between various French republican dates.
Standard value is:
EQUINOX
.- Returns:
- format attribute key
-
isLeapYear
public boolean isLeapYear(int fyear)Determines if given republican year is a leap year or not.
- Parameters:
fyear
- the year of French Republic in the French revolutionary calendar- Returns:
true
for leap years elsefalse
-