Enum Class Download.State

java.lang.Object
java.lang.Enum<Download.State>
dk.gtz.graphedit.util.Download.State
All Implemented Interfaces:
Serializable, Comparable<Download.State>, Constable
Enclosing class:
Download

public static enum Download.State extends Enum<Download.State>
The state that the download can be in.
  • Enum Constant Details

    • DOWNLOADING

      public static final Download.State DOWNLOADING
      The download is currently in progress.
    • PAUSED

      public static final Download.State PAUSED
      The download is paused. Call Download.resume() to resume.
    • COMPLETE

      public static final Download.State COMPLETE
      The download is complete. Call Download.downloadedFile() to get the downloaded file.
    • CANCELLED

      public static final Download.State CANCELLED
      The download was cancelled. Discard the Download instance and start again.
    • ERROR

      public static final Download.State ERROR
      An error occurred during the download. Check the logs for more information.
  • Method Details

    • values

      public static Download.State[] 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

      public static Download.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null