Package de.learnlib.filter.reuse.tree
Enum BoundedDeque.EvictPolicy
- java.lang.Object
-
- java.lang.Enum<BoundedDeque.EvictPolicy>
-
- de.learnlib.filter.reuse.tree.BoundedDeque.EvictPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<BoundedDeque.EvictPolicy>
- Enclosing class:
- BoundedDeque<E>
public static enum BoundedDeque.EvictPolicy extends Enum<BoundedDeque.EvictPolicy>
The policy which determines in which order elements are removed if the maximum capacity is reached.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVICT_NEWEST
Evict the newest element, that is already *in* the queue (i.e., in any case inserts the new element).EVICT_OLDEST
Evict the oldest element, i.e., the one at the head of the queue/bottom of the stack.REJECT_NEW
Reject the element that is about to be inserted.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BoundedDeque.EvictPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static BoundedDeque.EvictPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVICT_OLDEST
public static final BoundedDeque.EvictPolicy EVICT_OLDEST
Evict the oldest element, i.e., the one at the head of the queue/bottom of the stack.
-
REJECT_NEW
public static final BoundedDeque.EvictPolicy REJECT_NEW
Reject the element that is about to be inserted.
-
EVICT_NEWEST
public static final BoundedDeque.EvictPolicy EVICT_NEWEST
Evict the newest element, that is already *in* the queue (i.e., in any case inserts the new element).
-
-
Method Detail
-
values
public static BoundedDeque.EvictPolicy[] 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 (BoundedDeque.EvictPolicy c : BoundedDeque.EvictPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BoundedDeque.EvictPolicy 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
-
-