private static enum Traverser.InsertionOrder extends java.lang.Enum<Traverser.InsertionOrder>
Deque::addFirst
and Deque::addLast
.Modifier and Type | Method and Description |
---|---|
(package private) abstract <T> void |
insertInto(java.util.Deque<T> deque,
T value) |
static Traverser.InsertionOrder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Traverser.InsertionOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Traverser.InsertionOrder FRONT
public static final Traverser.InsertionOrder BACK
public static Traverser.InsertionOrder[] values()
for (Traverser.InsertionOrder c : Traverser.InsertionOrder.values()) System.out.println(c);
public static Traverser.InsertionOrder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullabstract <T> void insertInto(java.util.Deque<T> deque, T value)