private static final class FlowControlHandler.RecyclableArrayDeque
extends java.util.ArrayDeque<java.lang.Object>
ArrayDeque
.Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_NUM_ELEMENTS
A value of
2 should be a good choice for most scenarios. |
private Recycler.Handle<FlowControlHandler.RecyclableArrayDeque> |
handle |
private static Recycler<FlowControlHandler.RecyclableArrayDeque> |
RECYCLER |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
private |
RecyclableArrayDeque(int numElements,
Recycler.Handle<FlowControlHandler.RecyclableArrayDeque> handle) |
Modifier and Type | Method and Description |
---|---|
static FlowControlHandler.RecyclableArrayDeque |
newInstance() |
void |
recycle() |
add, addFirst, addLast, clear, clone, contains, descendingIterator, element, getFirst, getLast, isEmpty, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size, spliterator, toArray, toArray
addAll, containsAll, removeAll, retainAll, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
private static final int DEFAULT_NUM_ELEMENTS
2
should be a good choice for most scenarios.private static final Recycler<FlowControlHandler.RecyclableArrayDeque> RECYCLER
private final Recycler.Handle<FlowControlHandler.RecyclableArrayDeque> handle
private RecyclableArrayDeque(int numElements, Recycler.Handle<FlowControlHandler.RecyclableArrayDeque> handle)
public static FlowControlHandler.RecyclableArrayDeque newInstance()
public void recycle()