E - the type of the elements in the queuepublic abstract class AbstractQueueDecorator<E> extends AbstractCollectionDecorator<E> implements java.util.Queue<E>
Queue to provide additional behaviour.
Methods are forwarded directly to the decorated queue.
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
Serialization version
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractQueueDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractQueueDecorator(java.util.Queue<E> queue)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprivate static final long serialVersionUID
protected AbstractQueueDecorator()
protected AbstractQueueDecorator(java.util.Queue<E> queue)
queue - the queue to decorate, must not be nulljava.lang.IllegalArgumentException - if list is nullprotected java.util.Queue<E> decorated()
decorated in class AbstractCollectionDecorator<E>