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 |
|
*/ |
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 |
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, |
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 |
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 |
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, |
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 |
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 |
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, |
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 |
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 |
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, |
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 |
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 |