Package tech.becoming.common.enums
Enum TimesOfDay
- java.lang.Object
-
- java.lang.Enum<TimesOfDay>
-
- tech.becoming.common.enums.TimesOfDay
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TimesOfDay>
public enum TimesOfDay extends java.lang.Enum<TimesOfDay>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_DAWNAFTER_LUNCHAFTER_NOONAFTER_SUNSETBEFORE_DAWNBEFORE_SUNSETEARLY_MORNINGEVENINGLATE_EVENINGLUNCH_TIMEMID_DAYMIDNIGHTMORNINGNIGHT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimesOfDayvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TimesOfDay[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EARLY_MORNING
public static final TimesOfDay EARLY_MORNING
-
MORNING
public static final TimesOfDay MORNING
-
MID_DAY
public static final TimesOfDay MID_DAY
-
LUNCH_TIME
public static final TimesOfDay LUNCH_TIME
-
AFTER_LUNCH
public static final TimesOfDay AFTER_LUNCH
-
AFTER_NOON
public static final TimesOfDay AFTER_NOON
-
EVENING
public static final TimesOfDay EVENING
-
LATE_EVENING
public static final TimesOfDay LATE_EVENING
-
NIGHT
public static final TimesOfDay NIGHT
-
MIDNIGHT
public static final TimesOfDay MIDNIGHT
-
BEFORE_DAWN
public static final TimesOfDay BEFORE_DAWN
-
AFTER_DAWN
public static final TimesOfDay AFTER_DAWN
-
BEFORE_SUNSET
public static final TimesOfDay BEFORE_SUNSET
-
AFTER_SUNSET
public static final TimesOfDay AFTER_SUNSET
-
-
Method Detail
-
values
public static TimesOfDay[] 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 (TimesOfDay c : TimesOfDay.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimesOfDay 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
-
-