848 |
|
} |
849 |
|
} |
850 |
|
|
851 |
+ |
/** |
852 |
+ |
* Removes a single instance of the specified element from this queue, |
853 |
+ |
* if it is present. More formally, removes an element {@code e} such |
854 |
+ |
* that {@code o.equals(e)}, if this queue contains one or more such |
855 |
+ |
* elements. |
856 |
+ |
* Returns {@code true} if this queue contained the specified element |
857 |
+ |
* (or equivalently, if this queue changed as a result of the call). |
858 |
+ |
* |
859 |
+ |
* @param o element to be removed from this queue, if present |
860 |
+ |
* @return {@code true} if this queue changed as a result of the call |
861 |
+ |
*/ |
862 |
|
public boolean remove(Object o) { |
863 |
|
if (o == null) |
864 |
|
return false; |