public static enum WorkoutStep.StepType extends Enum<WorkoutStep.StepType>
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static WorkoutStep.StepType |
getWorkoutStepType(int i)
Get the enum based on the enum value passed
|
String |
toString() |
static WorkoutStep.StepType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WorkoutStep.StepType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkoutStep.StepType WARMUP
public static final WorkoutStep.StepType WORK
public static final WorkoutStep.StepType REST
public static final WorkoutStep.StepType COOLDOWN
public static WorkoutStep.StepType[] values()
for (WorkoutStep.StepType c : WorkoutStep.StepType.values()) System.out.println(c);
public static WorkoutStep.StepType 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 static WorkoutStep.StepType getWorkoutStepType(int i)
i
- Enum valuepublic int getValue()
public String toString()
toString
in class Enum<WorkoutStep.StepType>
Copyright © 2023. All rights reserved.