110 |
|
* @param <K> the type of keys maintained by this map |
111 |
|
* @param <V> the type of mapped values |
112 |
|
*/ |
113 |
< |
public class CustomConcurrentHashMap<K, V> extends AbstractMap<K, V> |
114 |
< |
implements ConcurrentMap<K, V>, Serializable { |
113 |
> |
public class CustomConcurrentHashMap<K,V> extends AbstractMap<K,V> |
114 |
> |
implements ConcurrentMap<K,V>, Serializable { |
115 |
|
private static final long serialVersionUID = 7249069246764182397L; |
116 |
|
|
117 |
|
/* |
226 |
|
* A function computing a mapping from the given key to a value, |
227 |
|
* or {@code null} if there is no mapping. |
228 |
|
*/ |
229 |
< |
public static interface MappingFunction<K, V> { |
229 |
> |
public static interface MappingFunction<K,V> { |
230 |
|
/** |
231 |
|
* Returns a value for the given key, or null if there is no |
232 |
|
* mapping. If this function throws an (unchecked) exception, |
247 |
|
* current value to a new value, or {@code null} if there is |
248 |
|
* no mapping. |
249 |
|
*/ |
250 |
< |
public static interface RemappingFunction<K, V> { |
250 |
> |
public static interface RemappingFunction<K,V> { |
251 |
|
/** |
252 |
|
* Returns a new value for the given key and its current, or |
253 |
|
* null if there is no mapping. |