Package org.pepstock.charba.client.enums
Enum IsoWeekDay
- java.lang.Object
-
- java.lang.Enum<IsoWeekDay>
-
- org.pepstock.charba.client.enums.IsoWeekDay
-
- All Implemented Interfaces:
Serializable
,Comparable<IsoWeekDay>
public enum IsoWeekDay extends Enum<IsoWeekDay>
Enumeration with ISO day of the week with 0 being Sunday and 6 being Saturday.- Author:
- Andrea "Stock" Stocchero
- See Also:
Time
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FRIDAY
The day of the week is FRIDAY.MONDAY
The day of the week is MONDAY.SATURDAY
The day of the week is SATURDAY.SUNDAY
The day of the week is SUNDAY.THURSDAY
The day of the week is THURSDAY.TUESDAY
The day of the week is TUESDAY.WEDNESDAY
The day of the week is WEDNESDAY.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IsoWeekDay
getIsoWeekDayByValue(int value)
Returns a ISO week day item by the passed value.int
value()
Returns the ISO day of the week.static IsoWeekDay
valueOf(String name)
Returns the enum constant of this type with the specified name.static IsoWeekDay[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUNDAY
public static final IsoWeekDay SUNDAY
The day of the week is SUNDAY.
-
MONDAY
public static final IsoWeekDay MONDAY
The day of the week is MONDAY.
-
TUESDAY
public static final IsoWeekDay TUESDAY
The day of the week is TUESDAY.
-
WEDNESDAY
public static final IsoWeekDay WEDNESDAY
The day of the week is WEDNESDAY.
-
THURSDAY
public static final IsoWeekDay THURSDAY
The day of the week is THURSDAY.
-
FRIDAY
public static final IsoWeekDay FRIDAY
The day of the week is FRIDAY.
-
SATURDAY
public static final IsoWeekDay SATURDAY
The day of the week is SATURDAY.
-
-
Method Detail
-
values
public static IsoWeekDay[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IsoWeekDay c : IsoWeekDay.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IsoWeekDay valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()
Returns the ISO day of the week.- Returns:
- the ISO day of the week
-
getIsoWeekDayByValue
public static IsoWeekDay getIsoWeekDayByValue(int value)
Returns a ISO week day item by the passed value.- Parameters:
value
- ISO day of the week with 0 being Sunday and 6 being Saturday- Returns:
- a ISO week day
-
-