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.19 by dl, Thu Jun 3 10:28:43 2004 UTC vs.
Revision 1.20 by dl, Sun Nov 21 01:40:53 2004 UTC

# Line 87 | Line 87 | public class CopyOnWriteArraySet<E> exte
87      public Object[] toArray()                 { return al.toArray(); }
88      public <T> T[]  toArray(T[] a)            { return al.toArray(a); }
89      public void     clear()                   {        al.clear(); }
90    public Iterator<E>  iterator()            { return al.iterator(); }
90      public boolean  remove(Object o)          { return al.remove(o); }
91      public boolean  add(E o)                  { return al.addIfAbsent(o); }
92      public boolean  containsAll(Collection<?> c)      { return al.containsAll(c); }
# Line 95 | Line 94 | public class CopyOnWriteArraySet<E> exte
94      public boolean  removeAll(Collection<?> c)        { return al.removeAll(c); }
95      public boolean  retainAll(Collection<?> c)        { return al.retainAll(c); }
96  
97 +    /**
98 +     * Returns an iterator over the elements contained in this collection
99 +     * in the order in which these elements were added.
100 +     */
101 +    public Iterator<E>  iterator()            { return al.iterator(); }
102 +
103   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines