对着HashMap进行比较https://www.cnblogs.com/wqff-biubiu/p/8963817.html
ConcurrentHashMap与HashMap实现的接口


相同:AbstractMap,Serializable,Map----->可序列化的键值对
差别:ConcurrentHashMap比HashMap
ConcurrentMap接口:
@Override default V getOrDefault(Object key, V defaultValue) {} @Override default void forEach(BiConsumer<? super K, ? super V> action) {} V putIfAbsent(K key, V value); boolean remove(Object key, Object value); boolean replace(K key, V oldValue, V newValue); V replace(K key, V value); @Override default void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) {} @Override default V computeIfAbsent(K key,Function<? super K, ? extends V> mappingFunction) {} @Override default V computeIfPresent(K key,BiFunction<? super K, ? super V, ? extends V> remappingFunction) {} @Override default V compute(K key,BiFunction<? super K, ? super V, ? extends V> remappingFunction) {} @Override default V merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) {}
原文:https://www.cnblogs.com/wqff-biubiu/p/10537350.html