添加 serialVersionUID 和 Javadoc。
This commit is contained in:
parent
3439e6450d
commit
1a0b91c5a7
@ -6,6 +6,8 @@ import java.util.function.Function;
|
|||||||
|
|
||||||
public class SafeConcurrentHashMap<K, V> extends ConcurrentHashMap<K, V> {
|
public class SafeConcurrentHashMap<K, V> extends ConcurrentHashMap<K, V> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 4352954948768449595L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new, empty map with the default initial table size (16).
|
* Creates a new, empty map with the default initial table size (16).
|
||||||
*/
|
*/
|
||||||
@ -75,6 +77,7 @@ public class SafeConcurrentHashMap<K, V> extends ConcurrentHashMap<K, V> {
|
|||||||
super(initialCapacity, loadFactor, concurrencyLevel);
|
super(initialCapacity, loadFactor, concurrencyLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) {
|
public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) {
|
||||||
V v = get(key);
|
V v = get(key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user