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.236 by dl, Thu Jul 11 10:38:10 2013 UTC vs.
Revision 1.237 by jsr166, Thu Jul 18 17:13:42 2013 UTC

# Line 2051 | Line 2051 | public class ConcurrentHashMap<K,V> exte
2051       * Creates a new {@link Set} backed by a ConcurrentHashMap
2052       * from the given type to {@code Boolean.TRUE}.
2053       *
2054 +     * @param <K> the element type of the returned set
2055       * @return the new set
2056       * @since 1.8
2057       */
# Line 2065 | Line 2066 | public class ConcurrentHashMap<K,V> exte
2066       *
2067       * @param initialCapacity The implementation performs internal
2068       * sizing to accommodate this many elements.
2069 +     * @param <K> the element type of the returned set
2070       * @throws IllegalArgumentException if the initial capacity of
2071       * elements is negative
2072       * @return the new set
# Line 3517 | Line 3519 | public class ConcurrentHashMap<K,V> exte
3519       * for an element, or null if there is no transformation (in
3520       * which case the action is not applied)
3521       * @param action the action
3522 +     * @param <U> the return type of the transformer
3523       * @since 1.8
3524       */
3525      public <U> void forEach(long parallelismThreshold,
# Line 3540 | Line 3543 | public class ConcurrentHashMap<K,V> exte
3543       * needed for this operation to be executed in parallel
3544       * @param searchFunction a function returning a non-null
3545       * result on success, else null
3546 +     * @param <U> the return type of the search function
3547       * @return a non-null result from applying the given search
3548       * function on each (key, value), or null if none
3549       * @since 1.8
# Line 3563 | Line 3567 | public class ConcurrentHashMap<K,V> exte
3567       * for an element, or null if there is no transformation (in
3568       * which case it is not combined)
3569       * @param reducer a commutative associative combining function
3570 +     * @param <U> the return type of the transformer
3571       * @return the result of accumulating the given transformation
3572       * of all (key, value) pairs
3573       * @since 1.8
# Line 3681 | Line 3686 | public class ConcurrentHashMap<K,V> exte
3686       * for an element, or null if there is no transformation (in
3687       * which case the action is not applied)
3688       * @param action the action
3689 +     * @param <U> the return type of the transformer
3690       * @since 1.8
3691       */
3692      public <U> void forEachKey(long parallelismThreshold,
# Line 3704 | Line 3710 | public class ConcurrentHashMap<K,V> exte
3710       * needed for this operation to be executed in parallel
3711       * @param searchFunction a function returning a non-null
3712       * result on success, else null
3713 +     * @param <U> the return type of the search function
3714       * @return a non-null result from applying the given search
3715       * function on each key, or null if none
3716       * @since 1.8
# Line 3746 | Line 3753 | public class ConcurrentHashMap<K,V> exte
3753       * for an element, or null if there is no transformation (in
3754       * which case it is not combined)
3755       * @param reducer a commutative associative combining function
3756 +     * @param <U> the return type of the transformer
3757       * @return the result of accumulating the given transformation
3758       * of all keys
3759       * @since 1.8
# Line 3865 | Line 3873 | public class ConcurrentHashMap<K,V> exte
3873       * for an element, or null if there is no transformation (in
3874       * which case the action is not applied)
3875       * @param action the action
3876 +     * @param <U> the return type of the transformer
3877       * @since 1.8
3878       */
3879      public <U> void forEachValue(long parallelismThreshold,
# Line 3888 | Line 3897 | public class ConcurrentHashMap<K,V> exte
3897       * needed for this operation to be executed in parallel
3898       * @param searchFunction a function returning a non-null
3899       * result on success, else null
3900 +     * @param <U> the return type of the search function
3901       * @return a non-null result from applying the given search
3902       * function on each value, or null if none
3903       * @since 1.8
# Line 3929 | Line 3939 | public class ConcurrentHashMap<K,V> exte
3939       * for an element, or null if there is no transformation (in
3940       * which case it is not combined)
3941       * @param reducer a commutative associative combining function
3942 +     * @param <U> the return type of the transformer
3943       * @return the result of accumulating the given transformation
3944       * of all values
3945       * @since 1.8
# Line 4046 | Line 4057 | public class ConcurrentHashMap<K,V> exte
4057       * for an element, or null if there is no transformation (in
4058       * which case the action is not applied)
4059       * @param action the action
4060 +     * @param <U> the return type of the transformer
4061       * @since 1.8
4062       */
4063      public <U> void forEachEntry(long parallelismThreshold,
# Line 4069 | Line 4081 | public class ConcurrentHashMap<K,V> exte
4081       * needed for this operation to be executed in parallel
4082       * @param searchFunction a function returning a non-null
4083       * result on success, else null
4084 +     * @param <U> the return type of the search function
4085       * @return a non-null result from applying the given search
4086       * function on each entry, or null if none
4087       * @since 1.8
# Line 4110 | Line 4123 | public class ConcurrentHashMap<K,V> exte
4123       * for an element, or null if there is no transformation (in
4124       * which case it is not combined)
4125       * @param reducer a commutative associative combining function
4126 +     * @param <U> the return type of the transformer
4127       * @return the result of accumulating the given transformation
4128       * of all entries
4129       * @since 1.8

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines