| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(final E
the element to add e)Overrides java. Implements java.
Deprecated
Unsupported operation.
Inserts the specified element into this queue if it is possible to do so
immediately without violating capacity restrictions, returning
|
| public boolean | addAll(final Collection<? extends E>
collection containing elements to be added to this queue c)Overrides java. Implements java.
Deprecated
Unsupported operation.
Adds all of the elements in the specified collection to this queue. |
| public void | clear()
Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes all of the elements from this queue. |
| public boolean | offer(final E
the element to add e)Implements java.
Deprecated
Unsupported operation.
Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions. |
| public E | poll()
Implements java.
Deprecated
Unsupported operation.
Retrieves and removes the head of this queue,
or returns |
| public E | remove()
Overrides java. Implements java.
Deprecated
Unsupported operation.
Retrieves and removes the head of this queue. |
| public boolean | remove(final Object
element to be removed from this collection, if present o)Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
| public boolean | removeAll(final Collection<?>
collection containing elements to be removed from this collection c)Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes all of this collection's elements that are also contained in the specified collection (optional operation). |
| public boolean | removeIf(final Predicate<? super E>
a predicate which returns filter)true for elements to be
removedOverrides default java.
Deprecated
Unsupported operation.
Removes all of the elements of this collection that satisfy the given predicate (optional operation). |
| public boolean | retainAll(final Collection<?>
collection containing elements to be retained in this collection list)Overrides java. Implements java.
Deprecated
Unsupported operation.
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
| AbstractUnmodifiableQueue | back to summary |
|---|---|
| public AbstractUnmodifiableQueue() | |
| add | back to summary |
|---|---|
| public boolean add(final E e) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Inserts the specified element into this queue if it is possible to do so
immediately without violating capacity restrictions, returning
This implementation returns
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(final Collection<? extends E> c) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Adds all of the elements in the specified collection to this
queue. Attempts to addAll of a queue to itself result in
This implementation iterates over the specified collection,
and adds each element returned by the iterator to this
queue, in turn. A runtime exception encountered while
trying to add an element (including, in particular, a
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes all of the elements from this queue. The queue will be empty after this call returns. This implementation repeatedly invokes
| |
| offer | back to summary |
|---|---|
| public boolean offer(final E e) Implements java. Doc from java. Deprecated Unsupported operation. Inserts the specified element into this queue if it is possible to do
so immediately without violating capacity restrictions.
When using a capacity-restricted queue, this method is generally
preferable to
| |
| poll | back to summary |
|---|---|
| public E poll() Implements java. Doc from java. Deprecated Unsupported operation. Retrieves and removes the head of this queue,
or returns
| |
| remove | back to summary |
|---|---|
| public E remove() Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Retrieves and removes the head of this queue. This method differs
from This implementation returns the result of
| |
| remove | back to summary |
|---|---|
| public boolean remove(final Object o) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes a single instance of the specified element from this
collection, if it is present (optional operation). More formally,
removes an element
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(final Collection<?> c) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes all of this collection's elements that are also contained in the specified collection (optional operation). After this call returns, this collection will contain no elements in common with the specified collection.
| |
| removeIf | back to summary |
|---|---|
| public boolean removeIf(final Predicate<? super E> filter) Overrides default java. Doc from java. Deprecated Unsupported operation. Removes all of the elements of this collection that satisfy the given predicate (optional operation). Errors or runtime exceptions thrown during iteration or by the predicate are relayed to the caller.
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(final Collection<?> list) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Retains only the elements in this collection that are contained in the specified collection (optional operation). In other words, removes from this collection all of its elements that are not contained in the specified collection.
| |