Package org.jdeferred2
Enum CallbackExceptionHandler.CallbackType
- java.lang.Object
-
- java.lang.Enum<CallbackExceptionHandler.CallbackType>
-
- org.jdeferred2.CallbackExceptionHandler.CallbackType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CallbackExceptionHandler.CallbackType>
- Enclosing interface:
- CallbackExceptionHandler
public static enum CallbackExceptionHandler.CallbackType extends java.lang.Enum<CallbackExceptionHandler.CallbackType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS_CALLBACK
DONE_CALLBACK
FAIL_CALLBACK
PROGRESS_CALLBACK
-
Constructor Summary
Constructors Modifier Constructor Description private
CallbackType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CallbackExceptionHandler.CallbackType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CallbackExceptionHandler.CallbackType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DONE_CALLBACK
public static final CallbackExceptionHandler.CallbackType DONE_CALLBACK
-
FAIL_CALLBACK
public static final CallbackExceptionHandler.CallbackType FAIL_CALLBACK
-
PROGRESS_CALLBACK
public static final CallbackExceptionHandler.CallbackType PROGRESS_CALLBACK
-
ALWAYS_CALLBACK
public static final CallbackExceptionHandler.CallbackType ALWAYS_CALLBACK
-
-
Method Detail
-
values
public static CallbackExceptionHandler.CallbackType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CallbackExceptionHandler.CallbackType c : CallbackExceptionHandler.CallbackType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CallbackExceptionHandler.CallbackType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-