public enum DownloadState extends Enum<DownloadState> implements Serializable
Enum Constant and Description |
---|
COMPLETED |
COMPLETEDWITHFAILURES |
FAILED |
ONGOING |
ONGOINGWITHFAILURES |
PENDING |
SAVED |
SAVING |
SERVICE_UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static DownloadState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DownloadState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DownloadState PENDING
public static final DownloadState ONGOING
public static final DownloadState ONGOINGWITHFAILURES
public static final DownloadState FAILED
public static final DownloadState COMPLETED
public static final DownloadState COMPLETEDWITHFAILURES
public static final DownloadState SAVING
public static final DownloadState SAVED
public static final DownloadState SERVICE_UNKNOWN
public static DownloadState[] values()
for (DownloadState c : DownloadState.values()) System.out.println(c);
public static DownloadState 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 © 2016. All Rights Reserved.