com.myzeo.decoder
Enum SleepStage
java.lang.Object
java.lang.Enum<SleepStage>
com.myzeo.decoder.SleepStage
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SleepStage>
public enum SleepStage
- extends java.lang.Enum<SleepStage>
Indicates the stage of sleep. Note: DEEP_2
is just another
type of deep sleep.
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
UNDEFINED
public static final SleepStage UNDEFINED
WAKE
public static final SleepStage WAKE
REM
public static final SleepStage REM
LIGHT
public static final SleepStage LIGHT
DEEP
public static final SleepStage DEEP
UNUSED
public static final SleepStage UNUSED
DEEP_2
public static final SleepStage DEEP_2
values
public static SleepStage[] 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 (SleepStage c : SleepStage.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SleepStage 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 name
java.lang.NullPointerException
- if the argument is null
convert
public static SleepStage convert(int i)
is_sleep
public boolean is_sleep()
is_wake
public boolean is_wake()