203 |
|
* Returns {@code true} if this set contains the specified element. |
204 |
|
* More formally, returns {@code true} if and only if this set |
205 |
|
* contains an element {@code e} such that |
206 |
< |
* {@code (o==null ? e==null : o.equals(e))}. |
206 |
> |
* <tt>(o==null ? e==null : o.equals(e))</tt>. |
207 |
|
* |
208 |
|
* @param o object to be checked for containment in this set |
209 |
|
* @return {@code true} if this set contains the specified element |
221 |
|
* Adds the specified element to this set if it is not already present. |
222 |
|
* More formally, adds the specified element {@code e} to this set if |
223 |
|
* the set contains no element {@code e2} such that |
224 |
< |
* {@code (e==null ? e2==null : e.equals(e2))}. |
224 |
> |
* <tt>(e==null ? e2==null : e.equals(e2))</tt>. |
225 |
|
* If this set already contains the element, the call leaves the set |
226 |
|
* unchanged and returns {@code false}. |
227 |
|
* |
241 |
|
/** |
242 |
|
* Removes the specified element from this set if it is present. |
243 |
|
* More formally, removes an element {@code e} such that |
244 |
< |
* {@code (o==null ? e==null : o.equals(e))}, |
244 |
> |
* <tt>(o==null ? e==null : o.equals(e))</tt>, |
245 |
|
* if this set contains such an element. Returns {@code true} if |
246 |
|
* this set contained the element (or equivalently, if this set |
247 |
|
* changed as a result of the call). (This set will not contain the |