205 |
|
/** |
206 |
|
* Returns {@code true} if this list contains the specified element. |
207 |
|
* More formally, returns {@code true} if and only if this list contains |
208 |
< |
* at least one element {@code e} such that |
209 |
< |
* <tt>(o==null ? e==null : o.equals(e))</tt>. |
208 |
> |
* at least one element {@code e} such that {@code Objects.equals(o, e)}. |
209 |
|
* |
210 |
|
* @param o element whose presence in this list is to be tested |
211 |
|
* @return {@code true} if this list contains the specified element |
493 |
|
* Removes the first occurrence of the specified element from this list, |
494 |
|
* if it is present. If this list does not contain the element, it is |
495 |
|
* unchanged. More formally, removes the element with the lowest index |
496 |
< |
* {@code i} such that |
498 |
< |
* <tt>(o==null ? get(i)==null : o.equals(get(i)))</tt> |
496 |
> |
* {@code i} such that {@code Objects.equals(o, get(i))} |
497 |
|
* (if such an element exists). Returns {@code true} if this list |
498 |
|
* contained the specified element (or equivalently, if this list |
499 |
|
* changed as a result of the call). |