Enum Class FrenchRepublicanMonth
- All Implemented Interfaces:
Serializable
,Comparable<FrenchRepublicanMonth>
,java.lang.constant.Constable
Represents the months used in 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 second month starting in October.The eight month starting in April (flower month).The third month starting in November (month of frost).The twelvth month starting in August.The seventh month starting in March.The tenth month starting in June.The fourth month starting in December (snowy month).The fifth month starting in January (rainy month).The ninth month starting in May.The eleventh month starting in July.The first month starting at autumnal equinox in September.The sixth month starting in February (windy month). -
Method Summary
Modifier and TypeMethodDescriptiongetDayNameInFrench(int dayOfMonth)
Obtains the French day name in this republican month.getDisplayName(Locale locale)
Gets the description text dependent on the locale.getDisplayName(Locale locale, TextWidth width, OutputContext oc)
Gets the description text dependent on the locale.int
getValue()
Gets the corresponding numerical value.static FrenchRepublicanMonth
valueOf(int month)
Gets the enum-constant which corresponds to the given numerical value.static FrenchRepublicanMonth
Returns the enum constant of this class with the specified name.static FrenchRepublicanMonth[]
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
-
VENDEMIAIRE
The first month starting at autumnal equinox in September.
-
BRUMAIRE
The second month starting in October.
-
FRIMAIRE
The third month starting in November (month of frost).
-
NIVOSE
The fourth month starting in December (snowy month).
-
PLUVIOSE
The fifth month starting in January (rainy month).
-
VENTOSE
The sixth month starting in February (windy month).
-
GERMINAL
The seventh month starting in March.
-
FLOREAL
The eight month starting in April (flower month).
-
PRAIRIAL
The ninth month starting in May.
-
MESSIDOR
The tenth month starting in June.
-
THERMIDOR
The eleventh month starting in July.
-
FRUCTIDOR
The twelvth month starting in August.
-
-
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:
month
- french republican month in the range [1-12]- Returns:
- republican month of year as enum
- Throws:
IllegalArgumentException
- if given argument is out of range
-
getValue
public int getValue()Gets the corresponding numerical value.
- Returns:
- number of republican month in the range [1-12]
-
getDisplayName
Gets the description text dependent on the locale.
The usage of the French language is strongly recommended. Equivalent to
getDisplayName(locale, TextWidth.WIDE, OutputContext.FORMAT)
.- Parameters:
locale
- language setting- Returns:
- descriptive text for given locale (never
null
) - See Also:
Locale.FRENCH
-
getDisplayName
Gets the description text dependent on the locale.
The usage of the French language is strongly recommended.
- Parameters:
locale
- language settingwidth
- text widthoc
- output context- Returns:
- descriptive text for given locale (never
null
) - See Also:
Locale.FRENCH
-
getDayNameInFrench
Obtains the French day name in this republican month.
- Parameters:
dayOfMonth
- the day of month in range1-30
- Returns:
- original French name of day
-