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 classSleepRating.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integervalueprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<SleepRating>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description SLEPT_UNDEFINEDSLEPT_POORLYSLEPT_SOMEWHAT_POORLYSLEPT_NEITHER_POORLY_NOR_WELLSLEPT_SOMEWHAT_WELLSLEPT_WELL
-
Method Summary
Modifier and Type Method Description final SleepRatingvalueOf(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 IntegergetValue()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()
-
-
-
-