E - the type of the elements in the queuepublic abstract class AbstractQueueDecorator<E> extends AbstractCollectionDecorator<E> implements Queue<E>
Queue to provide additional behaviour.
Methods are forwarded directly to the decorated queue.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractQueueDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractQueueDecorator(Queue<E> queue)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
protected Queue<E> |
decorated()
Gets the queue being decorated.
|
E |
element() |
boolean |
offer(E obj) |
E |
peek() |
E |
poll() |
E |
remove() |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray, toStringprotected AbstractQueueDecorator()
protected AbstractQueueDecorator(Queue<E> queue)
queue - the queue to decorate, must not be nullIllegalArgumentException - if list is nullprotected Queue<E> decorated()
decorated in class AbstractCollectionDecorator<E>Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.