118 |
|
/** |
119 |
|
* Returns {@code true} if this set contains the specified element. |
120 |
|
* More formally, returns {@code true} if and only if this set |
121 |
< |
* contains an element {@code e} such that |
122 |
< |
* <tt>(o==null ? e==null : o.equals(e))</tt>. |
121 |
> |
* contains an element {@code e} such that {@code Objects.equals(o, e)}. |
122 |
|
* |
123 |
|
* @param o element whose presence in this set is to be tested |
124 |
|
* @return {@code true} if this set contains the specified element |
203 |
|
/** |
204 |
|
* Removes the specified element from this set if it is present. |
205 |
|
* More formally, removes an element {@code e} such that |
206 |
< |
* <tt>(o==null ? e==null : o.equals(e))</tt>, |
207 |
< |
* if this set contains such an element. Returns {@code true} if |
208 |
< |
* this set contained the element (or equivalently, if this set |
209 |
< |
* changed as a result of the call). (This set will not contain the |
211 |
< |
* element once the call returns.) |
206 |
> |
* {@code Objects.equals(o, e)}, if this set contains such an element. |
207 |
> |
* Returns {@code true} if this set contained the element (or |
208 |
> |
* equivalently, if this set changed as a result of the call). |
209 |
> |
* (This set will not contain the element once the call returns.) |
210 |
|
* |
211 |
|
* @param o object to be removed from this set, if present |
212 |
|
* @return {@code true} if this set contained the specified element |
219 |
|
* Adds the specified element to this set if it is not already present. |
220 |
|
* More formally, adds the specified element {@code e} to this set if |
221 |
|
* the set contains no element {@code e2} such that |
222 |
< |
* <tt>(e==null ? e2==null : e.equals(e2))</tt>. |
222 |
> |
* {@code Objects.equals(e, e2)}. |
223 |
|
* If this set already contains the element, the call leaves the set |
224 |
|
* unchanged and returns {@code false}. |
225 |
|
* |