public static enum Workout.IntensityLevel extends Enum<Workout.IntensityLevel>
| Enum Constant and Description |
|---|
EASIER |
EASIEST |
HARDER |
HARDEST |
STANDARD |
| Modifier and Type | Method and Description |
|---|---|
static Workout.IntensityLevel |
getIntensityLevel(int value)
Get the enum based on the enum value passed
|
int |
getValue()
Returns the value of this enum entry
|
String |
toString() |
static Workout.IntensityLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Workout.IntensityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Workout.IntensityLevel EASIEST
public static final Workout.IntensityLevel EASIER
public static final Workout.IntensityLevel STANDARD
public static final Workout.IntensityLevel HARDER
public static final Workout.IntensityLevel HARDEST
public static Workout.IntensityLevel[] values()
for (Workout.IntensityLevel c : Workout.IntensityLevel.values()) System.out.println(c);
public static Workout.IntensityLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
public static Workout.IntensityLevel getIntensityLevel(int value)
value - Enum valuepublic String toString()
toString in class Enum<Workout.IntensityLevel>Copyright © 2025. All rights reserved.