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

Comparing jsr166/src/main/java/util/concurrent/CopyOnWriteArrayList.java (file contents):
Revision 1.131 by jsr166, Thu Jul 9 17:37:17 2015 UTC vs.
Revision 1.132 by jsr166, Mon Aug 3 19:20:17 2015 UTC

# Line 225 | Line 225 | public class CopyOnWriteArrayList<E>
225       * this list, searching forwards from {@code index}, or returns -1 if
226       * the element is not found.
227       * More formally, returns the lowest index {@code i} such that
228 <     * <tt>(i&nbsp;&gt;=&nbsp;index&nbsp;&amp;&amp;&nbsp;(e==null&nbsp;?&nbsp;get(i)==null&nbsp;:&nbsp;e.equals(get(i))))</tt>,
228 >     * {@code i >= index && Objects.equals(get(i), e)},
229       * or -1 if there is no such index.
230       *
231       * @param e element to search for
# Line 253 | Line 253 | public class CopyOnWriteArrayList<E>
253       * this list, searching backwards from {@code index}, or returns -1 if
254       * the element is not found.
255       * More formally, returns the highest index {@code i} such that
256 <     * <tt>(i&nbsp;&lt;=&nbsp;index&nbsp;&amp;&amp;&nbsp;(e==null&nbsp;?&nbsp;get(i)==null&nbsp;:&nbsp;e.equals(get(i))))</tt>,
256 >     * {@code i <= index && Objects.equals(get(i), e)},
257       * or -1 if there is no such index.
258       *
259       * @param e element to search for

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines