83 |
|
|
84 |
|
/** |
85 |
|
* A function computing a mapping from the given key to a value, |
86 |
< |
* or <code>null</code> if there is no mapping. This is a |
87 |
< |
* place-holder for an upcoming JDK8 interface. |
86 |
> |
* or {@code null} if there is no mapping. This is a place-holder |
87 |
> |
* for an upcoming JDK8 interface. |
88 |
|
*/ |
89 |
|
public static interface MappingFunction<K, V> { |
90 |
|
/** |
217 |
|
|
218 |
|
/** |
219 |
|
* The default initial table capacity. Must be a power of 2, at |
220 |
< |
* least MINIMUM_CAPACITY and at most MAXIMUM_CAPACITY |
220 |
> |
* least MINIMUM_CAPACITY and at most MAXIMUM_CAPACITY. |
221 |
|
*/ |
222 |
|
static final int DEFAULT_CAPACITY = 16; |
223 |
|
|
909 |
|
* nonpositive. |
910 |
|
*/ |
911 |
|
public ConcurrentHashMapV8(int initialCapacity, |
912 |
< |
float loadFactor, int concurrencyLevel) { |
912 |
> |
float loadFactor, int concurrencyLevel) { |
913 |
|
if (!(loadFactor > 0) || initialCapacity < 0 || concurrencyLevel <= 0) |
914 |
|
throw new IllegalArgumentException(); |
915 |
|
this.initCap = initialCapacity; |
1550 |
|
} |
1551 |
|
|
1552 |
|
/** |
1553 |
< |
* Reconstitutes the instance from a |
1554 |
< |
* stream (i.e., deserializes it). |
1553 |
> |
* Reconstitutes the instance from a stream (that is, deserializes it). |
1554 |
|
* @param s the stream |
1555 |
|
*/ |
1556 |
|
@SuppressWarnings("unchecked") |