public enum DataResult extends java.lang.Enum<DataResult>
Enum Constant and Description |
---|
CONNECT |
DISCONNECT |
DOWNLOAD |
SUCCESS |
Modifier and Type | Field and Description |
---|---|
private int |
code |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static DataResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataResult SUCCESS
public static final DataResult CONNECT
public static final DataResult DISCONNECT
public static final DataResult DOWNLOAD
public static DataResult[] values()
for (DataResult c : DataResult.values()) System.out.println(c);
public static DataResult 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 getCode()