ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/ConcurrentHashSet.java
(Generate patch)

Comparing jsr166/src/test/loops/ConcurrentHashSet.java (file contents):
Revision 1.1 by dl, Mon Nov 28 15:40:56 2005 UTC vs.
Revision 1.2 by jsr166, Thu Oct 29 23:09:07 2009 UTC

# Line 15 | Line 15 | public class ConcurrentHashSet<E> extend
15  
16      private final ConcurrentHashMap<E, Boolean> m;  // The backing map
17      private transient Set<E> keySet;  // Its keySet
18 <    
19 <    public ConcurrentHashSet() {
18 >
19 >    public ConcurrentHashSet() {
20          m = new ConcurrentHashMap<E, Boolean>();
21          keySet = m.keySet();
22      }
# Line 24 | Line 24 | public class ConcurrentHashSet<E> extend
24          m = new ConcurrentHashMap<E, Boolean>(initialCapacity);
25          keySet = m.keySet();
26      }
27 <    public ConcurrentHashSet(int initialCapacity, float loadFactor,
27 >    public ConcurrentHashSet(int initialCapacity, float loadFactor,
28                               int concurrencyLevel) {
29 <        m = new ConcurrentHashMap<E, Boolean>(initialCapacity, loadFactor,
29 >        m = new ConcurrentHashMap<E, Boolean>(initialCapacity, loadFactor,
30                                                concurrencyLevel);
31          keySet = m.keySet();
32      }
# Line 61 | Line 61 | public class ConcurrentHashSet<E> extend
61          keySet = m.keySet();
62      }
63   }
64

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines