Package net.time4j.calendar.frenchrev
Enum Class DayOfDecade
- All Implemented Interfaces:
Serializable
,Comparable<DayOfDecade>
,java.lang.constant.Constable
Represents the days of decade 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 tenth day of decade.The second day of decade.The ninth day of decade.The eigth day of decade.The first day of decade.The fourth day of decade.The fifth day of decade.The seventh day of decade.The sixth day of decade.The third day of decade. -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayName(Locale locale)
Equivalent togetDisplayName(locale, TextWidth.WIDE, OutputContext.FORMAT)
.getDisplayName(Locale locale, TextWidth width, OutputContext oc)
Gets the description text dependent on the locale.int
getValue()
Gets the corresponding numerical value.static DayOfDecade
valueOf(int dayOfDecade)
Gets the enum-constant which corresponds to the given numerical value.static DayOfDecade
Returns the enum constant of this class with the specified name.static DayOfDecade[]
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
-
PRIMIDI
The first day of decade.
-
DUODI
The second day of decade.
-
TRIDI
The third day of decade.
-
QUARTIDI
The fourth day of decade.
-
QUINTIDI
The fifth day of decade.
-
SEXTIDI
The sixth day of decade.
-
SEPTIDI
The seventh day of decade.
-
OCTIDI
The eigth day of decade.
-
NONIDI
The ninth day of decade.
-
DECADI
The tenth day of decade.
-
-
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:
dayOfDecade
- french revolutionary day of decade in the range [1-10]- Returns:
- day of decade as enum
- Throws:
IllegalArgumentException
- if given argument is out of range
-
getValue
public int getValue()Gets the corresponding numerical value.
- Returns:
- number of day of decade in the range [1-10]
-
getDisplayName
Equivalent to
getDisplayName(locale, TextWidth.WIDE, OutputContext.FORMAT)
.The usage of the French language is strongly recommended.
- 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
-