public enum FutureState extends Enum<FutureState>
| Enum Constant and Description |
|---|
CANCELLED
ths task is cancelled
|
DOING
the task is doing
|
DONE
the task is done
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCancelledState() |
boolean |
isDoingState() |
boolean |
isDoneState() |
static FutureState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FutureState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FutureState DOING
public static final FutureState DONE
public static final FutureState CANCELLED
public static FutureState[] values()
for (FutureState c : FutureState.values()) System.out.println(c);
public static FutureState 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 boolean isCancelledState()
public boolean isDoneState()
public boolean isDoingState()
Copyright © 2019. All rights reserved.