Package com.polar.sdk.api.model.sleep
Enum SleepRating
-
- All Implemented Interfaces:
-
java.io.Serializable
,kotlin.Comparable
public enum SleepRating extends Enum<SleepRating>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
SleepRating.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integer
value
private final String
name
private final Integer
ordinal
private final EnumEntries<SleepRating>
entries
-
Enum Constant Summary
Enum Constants Enum Constant Description SLEPT_UNDEFINED
SLEPT_POORLY
SLEPT_SOMEWHAT_POORLY
SLEPT_NEITHER_POORLY_NOR_WELL
SLEPT_SOMEWHAT_WELL
SLEPT_WELL
-
Method Summary
Modifier and Type Method Description final SleepRating
valueOf(String value)
Returns the enum constant of this type with the specified name. final Array<SleepRating>
values()
Returns an array containing the constants of this enum type, in the order they're declared. final Integer
getValue()
final EnumEntries<SleepRating>
getEntries()
-
-
Method Detail
-
valueOf
final SleepRating valueOf(String value)
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.)
-
values
final Array<SleepRating> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<SleepRating> getEntries()
-
-
-
-