public static enum Workout.WorkoutType extends Enum<Workout.WorkoutType>
Enum Constant and Description |
---|
CUSTOM |
ENDURANCE |
FATBURN |
FITNESS |
POWER |
SPEED |
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the value of this enum entry
|
static Workout.WorkoutType |
getWorkoutType(int value)
Get the enum based on the enum value passed
|
String |
toString() |
static Workout.WorkoutType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Workout.WorkoutType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Workout.WorkoutType FATBURN
public static final Workout.WorkoutType ENDURANCE
public static final Workout.WorkoutType FITNESS
public static final Workout.WorkoutType SPEED
public static final Workout.WorkoutType POWER
public static final Workout.WorkoutType CUSTOM
public static Workout.WorkoutType[] values()
for (Workout.WorkoutType c : Workout.WorkoutType.values()) System.out.println(c);
public static Workout.WorkoutType 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.WorkoutType getWorkoutType(int value)
value
- Enum valuepublic String toString()
toString
in class Enum<Workout.WorkoutType>
Copyright © 2020. All rights reserved.