public static enum WorkoutListItem.ActivityType extends Enum<WorkoutListItem.ActivityType>
Modifier and Type | Method and Description |
---|---|
static WorkoutListItem.ActivityType |
getActivityType(long value)
Get the enum based on the enum value passed
|
long |
getValue()
Returns the value
|
String |
toString() |
static WorkoutListItem.ActivityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WorkoutListItem.ActivityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkoutListItem.ActivityType RUNNING
public static final WorkoutListItem.ActivityType CYCLING
public static WorkoutListItem.ActivityType[] values()
for (WorkoutListItem.ActivityType c : WorkoutListItem.ActivityType.values()) System.out.println(c);
public static WorkoutListItem.ActivityType 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 WorkoutListItem.ActivityType getActivityType(long value)
value
- Enum valuepublic long getValue()
public String toString()
toString
in class Enum<WorkoutListItem.ActivityType>
Copyright © 2020. All rights reserved.