public static enum Request.Milestone extends Enum<Request.Milestone>
Enum Constant and Description |
---|
AllDone |
Cleanup |
Connect |
Download |
None |
OpenConnection |
Upload |
Modifier and Type | Method and Description |
---|---|
int |
errorCode()
Direct use of ordinal() is discouraged
Use this method to get the error code in case things change in the future
|
static Request.Milestone |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Request.Milestone[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Request.Milestone None
public static final Request.Milestone OpenConnection
public static final Request.Milestone Connect
public static final Request.Milestone Upload
public static final Request.Milestone Download
public static final Request.Milestone Cleanup
public static final Request.Milestone AllDone
public static Request.Milestone[] values()
for (Request.Milestone c : Request.Milestone.values()) System.out.println(c);
public static Request.Milestone 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 int errorCode()