Package org.lukashian
Enum Class Formatter.DayFormat
- All Implemented Interfaces:
Serializable
,Comparable<Formatter.DayFormat>
,Constable
- Enclosing class:
Formatter
Represents the different ways to format a
Day
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFormat the day first, then the year of the day, for example: '43-5919'.Format the day only, for example: '43'.Format the epoch day, i.e. the how manieth day it is since the start of the Lukashian Calendar, irrespective of the year, for example: '15592'.Format the year first, then the day inside the year, for example: '5919-43'. -
Method Summary
Modifier and TypeMethodDescriptionstatic Formatter.DayFormat
Returns the enum constant of this class with the specified name.static Formatter.DayFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EPOCH
Format the epoch day, i.e. the how manieth day it is since the start of the Lukashian Calendar, irrespective of the year, for example: '15592'. -
YEAR_FIRST
Format the year first, then the day inside the year, for example: '5919-43'. -
DAY_FIRST
Format the day first, then the year of the day, for example: '43-5919'. -
DAY_ONLY
Format the day only, for example: '43'.
-
-
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
-