ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CopyOnWriteArraySet.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CopyOnWriteArraySet.java (file contents):
Revision 1.57 by jsr166, Sun May 25 02:33:45 2014 UTC vs.
Revision 1.58 by jsr166, Sun Nov 23 18:46:47 2014 UTC

# Line 118 | Line 118 | public class CopyOnWriteArraySet<E> exte
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&nbsp;?&nbsp;e==null&nbsp;:&nbsp;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
# Line 204 | Line 203 | public class CopyOnWriteArraySet<E> exte
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&nbsp;?&nbsp;e==null&nbsp;:&nbsp;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
# Line 221 | Line 219 | public class CopyOnWriteArraySet<E> exte
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&nbsp;?&nbsp;e2==null&nbsp;:&nbsp;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       *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines