Enum TaskQueue.TaskOrder
- java.lang.Object
-
- java.lang.Enum<TaskQueue.TaskOrder>
-
- com.twilio.rest.taskrouter.v1.workspace.TaskQueue.TaskOrder
-
- All Implemented Interfaces:
Serializable
,Comparable<TaskQueue.TaskOrder>
- Enclosing class:
- TaskQueue
public static enum TaskQueue.TaskOrder extends Enum<TaskQueue.TaskOrder>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskQueue.TaskOrder
forValue(String value)
Generate a TaskOrder from a string.String
toString()
static TaskQueue.TaskOrder
valueOf(String name)
Returns the enum constant of this type with the specified name.static TaskQueue.TaskOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIFO
public static final TaskQueue.TaskOrder FIFO
-
LIFO
public static final TaskQueue.TaskOrder LIFO
-
-
Method Detail
-
values
public static TaskQueue.TaskOrder[] 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 (TaskQueue.TaskOrder c : TaskQueue.TaskOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskQueue.TaskOrder valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<TaskQueue.TaskOrder>
-
forValue
public static TaskQueue.TaskOrder forValue(String value)
Generate a TaskOrder from a string.- Parameters:
value
- string value- Returns:
- generated TaskOrder
-
-