public enum EnumStatus extends java.lang.Enum<EnumStatus>
GetDetailsRet
,
GetStatusRet
Enum Constant and Description |
---|
DONE |
ERROR |
ON_COMP |
ON_EXEC |
ON_INTERPRET |
WAITING |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Return the description message of the task's status
|
int |
getStatus()
Return the task's status
|
static EnumStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumStatus ERROR
public static final EnumStatus DONE
public static final EnumStatus ON_COMP
public static final EnumStatus ON_EXEC
public static final EnumStatus ON_INTERPRET
public static final EnumStatus WAITING
public static EnumStatus[] values()
for (EnumStatus c : EnumStatus.values()) System.out.println(c);
public static EnumStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getStatus()
public java.lang.String getDescription()