Package com.github.ddth.queue.impl
Enum AbstractQueue.PutToQueueCase
- java.lang.Object
-
- java.lang.Enum<AbstractQueue.PutToQueueCase>
-
- com.github.ddth.queue.impl.AbstractQueue.PutToQueueCase
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractQueue.PutToQueueCase>
- Enclosing class:
- AbstractQueue<ID,DATA>
protected static enum AbstractQueue.PutToQueueCase extends Enum<AbstractQueue.PutToQueueCase>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEW
REQUEUE
REQUEUE_SILENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
value()
static AbstractQueue.PutToQueueCase
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractQueue.PutToQueueCase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final AbstractQueue.PutToQueueCase NEW
-
REQUEUE
public static final AbstractQueue.PutToQueueCase REQUEUE
-
REQUEUE_SILENT
public static final AbstractQueue.PutToQueueCase REQUEUE_SILENT
-
-
Method Detail
-
values
public static AbstractQueue.PutToQueueCase[] 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 (AbstractQueue.PutToQueueCase c : AbstractQueue.PutToQueueCase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractQueue.PutToQueueCase 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
-
value
public int value()
-
-