public static enum DownloadSimulator.JobState extends Enum<DownloadSimulator.JobState>
| Enum Constant and Description |
|---|
CANCELED |
COMPLETED |
FAILED |
RUNNING |
| Modifier and Type | Method and Description |
|---|---|
static DownloadSimulator.JobState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DownloadSimulator.JobState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DownloadSimulator.JobState RUNNING
public static final DownloadSimulator.JobState COMPLETED
public static final DownloadSimulator.JobState CANCELED
public static final DownloadSimulator.JobState FAILED
public static DownloadSimulator.JobState[] values()
for (DownloadSimulator.JobState c : DownloadSimulator.JobState.values()) System.out.println(c);
public static DownloadSimulator.JobState 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 nullCopyright © 2017. All rights reserved.