| Enum Constant and Description |
|---|
CREPUSCULAR |
DIURNAL |
NO_SLEEP |
NOCTURNAL |
| Modifier and Type | Method and Description |
|---|---|
static int |
fromTimeToTicks(int hour,
int minute) |
int |
getAwakeTime() |
int |
getSleepTime() |
int |
getWakeUpTime() |
boolean |
shouldSleep() |
boolean |
shouldSleepNextDay() |
static SleepTime |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SleepTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SleepTime DIURNAL
public static final SleepTime NOCTURNAL
public static final SleepTime CREPUSCULAR
public static final SleepTime NO_SLEEP
public static SleepTime[] values()
for (SleepTime c : SleepTime.values()) System.out.println(c);
public static SleepTime valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static int fromTimeToTicks(int hour,
int minute)
public int getWakeUpTime()
public int getSleepTime()
public boolean shouldSleepNextDay()
public boolean shouldSleep()
public int getAwakeTime()