5 |
|
*/ |
6 |
|
|
7 |
|
package extra166y; |
8 |
+ |
|
9 |
|
import java.lang.ref.*; |
10 |
|
import java.lang.reflect.*; |
11 |
|
import java.io.*; |
20 |
|
* user-supplied computational methods for setting and updating |
21 |
|
* values. In particular: <ul> |
22 |
|
* |
23 |
< |
* <li> Identity-based, Equality-based or User-definable {@link |
24 |
< |
* Equivalence}-based comparisons controlling membership. |
23 |
> |
* <li>Identity-based, Equality-based or User-definable {@link |
24 |
> |
* Equivalence}-based comparisons controlling membership. |
25 |
|
* |
26 |
< |
* <li> {@linkplain SoftReference Soft}, {@linkplain |
27 |
< |
* WeakReference weak} or strong (regular) keys and values. |
26 |
> |
* <li>{@linkplain SoftReference Soft}, {@linkplain |
27 |
> |
* WeakReference weak} or strong (regular) keys and values. |
28 |
|
* |
29 |
< |
* <li> User-definable {@code MappingFunctions} that may be |
30 |
< |
* used in method {@link |
31 |
< |
* CustomConcurrentHashMap#computeIfAbsent} to atomically |
32 |
< |
* establish a computed value, along with |
33 |
< |
* {@code RemappingFunctions} that can be used in method |
34 |
< |
* {@link CustomConcurrentHashMap#compute} to atomically |
35 |
< |
* replace values. |
29 |
> |
* <li>User-definable {@code MappingFunctions} that may be |
30 |
> |
* used in method {@link |
31 |
> |
* CustomConcurrentHashMap#computeIfAbsent} to atomically |
32 |
> |
* establish a computed value, along with |
33 |
> |
* {@code RemappingFunctions} that can be used in method |
34 |
> |
* {@link CustomConcurrentHashMap#compute} to atomically |
35 |
> |
* replace values. |
36 |
|
* |
37 |
< |
* <li>Factory methods returning specialized forms for {@code int} |
38 |
< |
* keys and/or values, that may be more space-efficient |
37 |
> |
* <li>Factory methods returning specialized forms for {@code int} |
38 |
> |
* keys and/or values, that may be more space-efficient |
39 |
|
* |
40 |
|
* </ul> |
41 |
|
* |
680 |
|
* Returns {@code true} if this map contains a key equivalent to |
681 |
|
* the given key with respect to this map's key Equivalence. |
682 |
|
* |
683 |
< |
* @param key possible key |
683 |
> |
* @param key possible key |
684 |
|
* @return {@code true} if this map contains the specified key |
685 |
|
* @throws NullPointerException if the specified key is null |
686 |
|
*/ |
698 |
|
* key with respect to this map's key Equivalence, or {@code null} |
699 |
|
* if no such mapping exists. |
700 |
|
* |
701 |
< |
* @param key possible key |
701 |
> |
* @param key possible key |
702 |
|
* @return the value associated with the key, or {@code null} if |
703 |
|
* there is no mapping |
704 |
|
* @throws NullPointerException if the specified key is null |