Enum Class Sansculottides
- All Implemented Interfaces:
Serializable
,Comparable<Sansculottides>
,java.lang.constant.Constable
Represents complementary days of the French revolutionary calendar.
- 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 first complementary day, also called "jour de la vertu".The second complementary day, also called "jour du génie".The third complementary day, also called "jour du travail".The fourth complementary day, also called "jour de l'opinion".The fifth complementary day, also called "jour des récompenses".The sixth complementary day (only in leap years), also called "jour de la révolution". -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayName(Locale locale, OutputContext oc)
Gets the description text dependent on the locale.int
getValue()
Gets the corresponding numerical value.static Sansculottides
valueOf(int num)
Gets the enum-constant which corresponds to the given numerical value.static Sansculottides
Returns the enum constant of this class with the specified name.static Sansculottides[]
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
-
COMPLEMENTARY_DAY_1
The first complementary day, also called "jour de la vertu".
-
COMPLEMENTARY_DAY_2
The second complementary day, also called "jour du génie".
-
COMPLEMENTARY_DAY_3
The third complementary day, also called "jour du travail".
-
COMPLEMENTARY_DAY_4
The fourth complementary day, also called "jour de l'opinion".
-
COMPLEMENTARY_DAY_5
The fifth complementary day, also called "jour des récompenses".
-
LEAP_DAY
The sixth complementary day (only in leap years), also called "jour de la révolution".
-
-
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
-
valueOf
Gets the enum-constant which corresponds to the given numerical value.
- Parameters:
num
- number of sansculottide day in the range [1-6]- Returns:
- sansculottide day as enum
- Throws:
IllegalArgumentException
- if given argument is out of range
-
getValue
public int getValue()Gets the corresponding numerical value.
- Returns:
- number of sansculottide day in the range [1-6]
-
getDisplayName
Gets the description text dependent on the locale.
The French language is the best choice for most applications. If chosen then the output context will determine the capitalization.
- Parameters:
locale
- language settingoc
- output context- Returns:
- descriptive text for given locale (never
null
) - See Also:
Locale.FRENCH
-