Package de.espirit.common.util
Enum Class WeekDay
- All Implemented Interfaces:
Serializable
,Comparable<WeekDay>
,Constable
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WeekDay[]
toString()
The locale dependent name of the week day, e.g. on a french localeMONDAY
.toString() will return "Lundi".static WeekDay
Returns the enum constant of this class with the specified name.static WeekDay[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUNDAY
A week day.- Since:
- 4.0
-
MONDAY
A week day.- Since:
- 4.0
-
TUESDAY
A week day.- Since:
- 4.0
-
WEDNESDAY
A week day.- Since:
- 4.0
-
THURSDAY
A week day.- Since:
- 4.0
-
FRIDAY
A week day.- Since:
- 4.0
-
SATURDAY
A week day.- Since:
- 4.0
-
-
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
-
toString
The locale dependent name of the week day, e.g. on a french localeMONDAY
.toString() will return "Lundi". -
getSortedWeekDays
A sorted array of week days where the first week day in the returned array is locale dependent (on some locales the first day of a week isSUNDAY
and on some it isMONDAY
).- Since:
- 4.0
-