Enum Class Promise.State

java.lang.Object
java.lang.Enum<Promise.State>
org.jdeferred2.Promise.State
All Implemented Interfaces:
Serializable, Comparable<Promise.State>, Constable
Enclosing interface:
Promise<D,F,P>

public static enum Promise.State extends Enum<Promise.State>
  • Enum Constant Details

    • PENDING

      public static final Promise.State PENDING
      The Promise is still pending - it could be created, submitted for execution, or currently running, but not yet finished.
    • REJECTED

      public static final Promise.State REJECTED
      The Promise has finished running and a failure occurred. Thus, the Promise is rejected.
      See Also:
    • RESOLVED

      public static final Promise.State RESOLVED
      The Promise has finished running successfully. Thus, the Promise is resolved.
      See Also:
  • Constructor Details

    • State

      private State()
  • Method Details

    • values

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