public enum ActivityState extends Enum<ActivityState>
Enum Constant and Description |
---|
ABORTED |
COMPLETED |
NOT_STARTED |
RUNNING |
SUSPENDED |
TERMINATED |
Modifier and Type | Method and Description |
---|---|
static String |
getSharkState(ActivityState state) |
static ActivityState |
getState(String state) |
static boolean |
isOpen(ActivityState state) |
static ActivityState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ActivityState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActivityState RUNNING
public static final ActivityState NOT_STARTED
public static final ActivityState SUSPENDED
public static final ActivityState COMPLETED
public static final ActivityState TERMINATED
public static final ActivityState ABORTED
public static ActivityState[] values()
for (ActivityState c : ActivityState.values()) System.out.println(c);
public static ActivityState 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 ActivityState getState(String state)
public static boolean isOpen(ActivityState state)
public static String getSharkState(ActivityState state)
Copyright © 2019 Suncode. All rights reserved.