public static enum BoundedDeque.EvictPolicy extends Enum<BoundedDeque.EvictPolicy>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final BoundedDeque.EvictPolicy EVICT_OLDEST
public static final BoundedDeque.EvictPolicy REJECT_NEW
public static final BoundedDeque.EvictPolicy EVICT_NEWEST
public static BoundedDeque.EvictPolicy[] values()
for (BoundedDeque.EvictPolicy c : BoundedDeque.EvictPolicy.values()) System.out.println(c);
public static BoundedDeque.EvictPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018. All rights reserved.