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.
This implementation does not forward the hashCode and equals methods through to the backing object, but relies on Object's implementation. This is necessary as some Queue implementations, e.g. LinkedList, have custom a equals implementation for which symmetry can not be preserved. See class javadoc of AbstractCollectionDecorator for more information.
Modifier and Type | Method and Description |
---|---|
E |
element() |
boolean |
offer(E obj) |
E |
peek() |
E |
poll() |
E |
remove() |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeIf, retainAll, size, toArray, toArray, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Copyright © 2010 - 2023 Adobe. All Rights Reserved