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

Comparing jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java (file contents):
Revision 1.75 by jsr166, Thu Jun 16 02:17:07 2005 UTC vs.
Revision 1.76 by jsr166, Mon Jun 20 18:05:45 2005 UTC

# Line 611 | Line 611 | public class ConcurrentHashMap<K, V> ext
611  
612      /**
613       * Creates a new, empty map with the specified initial capacity
614 <     * and load factor and with the default concurrencyLevel
615 <     * (<tt>16</tt>).
614 >     * and load factor and with the default concurrencyLevel (16).
615       *
616       * @param initialCapacity The implementation performs internal
617       * sizing to accommodate this many elements.
# Line 628 | Line 627 | public class ConcurrentHashMap<K, V> ext
627  
628      /**
629       * Creates a new, empty map with the specified initial capacity,
630 <     * and with default load factor (<tt>0.75f</tt>)
632 <     * and concurrencyLevel (<tt>16</tt>).
630 >     * and with default load factor (0.75) and concurrencyLevel (16).
631       *
632       * @param initialCapacity the initial capacity. The implementation
633       * performs internal sizing to accommodate this many elements.
# Line 641 | Line 639 | public class ConcurrentHashMap<K, V> ext
639      }
640  
641      /**
642 <     * Creates a new, empty map with a default initial capacity
643 <     * (<tt>16</tt>), load factor
646 <     * (<tt>0.75f</tt>), and concurrencyLevel
647 <     * (<tt>16</tt>).
642 >     * Creates a new, empty map with a default initial capacity (16),
643 >     * load factor (0.75) and concurrencyLevel (16).
644       */
645      public ConcurrentHashMap() {
646          this(DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR, DEFAULT_CONCURRENCY_LEVEL);
647      }
648  
649      /**
650 <     * Creates a new map with the same mappings as the given map.  The
651 <     * map is created with a capacity of 1.5 times the number of
652 <     * mappings in the given map or <tt>16</tt>
653 <     * (whichever is greater), and a default load factor
654 <     * (<tt>0.75f</tt>) and concurrencyLevel
659 <     * (<tt>16</tt>).
650 >     * Creates a new map with the same mappings as the given map.
651 >     * The map is created with a capacity of 1.5 times the number
652 >     * of mappings in the given map or 16 (whichever is greater),
653 >     * and a default load factor (0.75) and concurrencyLevel (16).
654 >     *
655       * @param m the map
656       */
657      public ConcurrentHashMap(Map<? extends K, ? extends V> m) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines