Enum Class Task.State

java.lang.Object
java.lang.Enum<Task.State>
com.sk89q.worldedit.util.task.Task.State
All Implemented Interfaces:
Serializable, Comparable<Task.State>, Constable
Enclosing interface:
Task<V>

public static enum Task.State extends Enum<Task.State>
Represents the state of a task.
  • Enum Constant Details

    • SCHEDULED

      public static final Task.State SCHEDULED
      The task has been scheduled to run but is not running yet.
    • CANCELLED

      public static final Task.State CANCELLED
      The task has been cancelled and may be stopped or will stop.
    • RUNNING

      public static final Task.State RUNNING
      The task is currently running.
    • FAILED

      public static final Task.State FAILED
      The task has failed.
    • SUCCEEDED

      public static final Task.State SUCCEEDED
      The task has succeeded.
  • Method Details

    • values

      public static Task.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 Task.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