Package dk.gtz.graphedit.util
Enum Class Download.State
- All Implemented Interfaces:
Serializable
,Comparable<Download.State>
,Constable
- Enclosing class:
- Download
The state that the download can be in.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe download was cancelled.The download is complete.The download is currently in progress.An error occurred during the download.The download is paused. -
Method Summary
Modifier and TypeMethodDescriptionstatic Download.State
Returns the enum constant of this class with the specified name.static Download.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DOWNLOADING
The download is currently in progress. -
PAUSED
The download is paused. CallDownload.resume()
to resume. -
COMPLETE
The download is complete. CallDownload.downloadedFile()
to get the downloaded file. -
CANCELLED
The download was cancelled. Discard theDownload
instance and start again. -
ERROR
An error occurred during the download. Check the logs for more information.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-