Package tech.becoming.common.enums
Enum HoursWithPM
- java.lang.Object
-
- java.lang.Enum<HoursWithPM>
-
- tech.becoming.common.enums.HoursWithPM
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HoursWithPM>
public enum HoursWithPM extends java.lang.Enum<HoursWithPM>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHourOfDay()java.time.LocalDateTimegetNow()static HoursWithPMvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HoursWithPM[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ZERO
public static final HoursWithPM ZERO
-
ONE
public static final HoursWithPM ONE
-
TWO
public static final HoursWithPM TWO
-
THREE
public static final HoursWithPM THREE
-
FOUR
public static final HoursWithPM FOUR
-
FIVE
public static final HoursWithPM FIVE
-
SIX
public static final HoursWithPM SIX
-
SEVEN
public static final HoursWithPM SEVEN
-
EIGHT
public static final HoursWithPM EIGHT
-
NINE
public static final HoursWithPM NINE
-
TEN
public static final HoursWithPM TEN
-
ELEVEN
public static final HoursWithPM ELEVEN
-
TWELVE
public static final HoursWithPM TWELVE
-
ONE_PM
public static final HoursWithPM ONE_PM
-
TWO_PM
public static final HoursWithPM TWO_PM
-
THREE_PM
public static final HoursWithPM THREE_PM
-
FOUR_PM
public static final HoursWithPM FOUR_PM
-
FIVE_PM
public static final HoursWithPM FIVE_PM
-
SIX_PM
public static final HoursWithPM SIX_PM
-
SEVEN_PM
public static final HoursWithPM SEVEN_PM
-
EIGHT_PM
public static final HoursWithPM EIGHT_PM
-
NINE_PM
public static final HoursWithPM NINE_PM
-
TEN_PM
public static final HoursWithPM TEN_PM
-
ELEVEN_PM
public static final HoursWithPM ELEVEN_PM
-
-
Method Detail
-
values
public static HoursWithPM[] 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 (HoursWithPM c : HoursWithPM.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HoursWithPM valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getHourOfDay
public int getHourOfDay()
-
getNow
public java.time.LocalDateTime getNow()
-
-