Module java.base
Package java.util.concurrent

# Class ConcurrentHashMap

=
public class ConcurrentHashMap<K, V>
extends java.util.AbstractMap<K, V>
implements java.io.Serializable, java.util.concurrent.ConcurrentMap<K, V>

## Nested Types

- = KeySetView

## Constructors

- =
  public ConcurrentHashMap()
- =
  public ConcurrentHashMap(int arg0)
- =
  public ConcurrentHashMap(int arg0, float arg1)
- =
  public ConcurrentHashMap(int arg0, float arg1, int arg2)
- =
  public ConcurrentHashMap(java.util.Map<? extends K, ? extends V> arg0)

## Methods

- =
  public void clear()
- =
  public V compute(K arg0, java.util.function.BiFunction<? super K, ? super V, ? extends V> arg1)
- =
  public V computeIfAbsent(K arg0, java.util.function.Function<? super K, ? extends V> arg1)
- =
  public V computeIfPresent(K arg0, java.util.function.BiFunction<? super K, ? super V, ? extends V> arg1)
- =
  public boolean contains(java.lang.Object arg0)
- =
  public boolean containsKey(java.lang.Object arg0)
- =
  public boolean containsValue(java.lang.Object arg0)
- =
  public java.util.Enumeration<V> elements()
- =
  public java.util.Set<java.util.Map.Entry<K, V>> entrySet()
- =
  public boolean equals(java.lang.Object arg0)
- =
  public void forEach(long arg0, java.util.function.BiConsumer<? super K, ? super V> arg1)
- =
  public <U> void forEach(long arg0, java.util.function.BiFunction<? super K, ? super V, ? extends U> arg1, java.util.function.Consumer<? super U> arg2)
- =
  public void forEach(java.util.function.BiConsumer<? super K, ? super V> arg0)
- =
  public void forEachEntry(long arg0, java.util.function.Consumer<? super java.util.Map.Entry<K, V>> arg1)
- =
  public <U> void forEachEntry(long arg0, java.util.function.Function<java.util.Map.Entry<K, V>, ? extends U> arg1, java.util.function.Consumer<? super U> arg2)
- =
  public void forEachKey(long arg0, java.util.function.Consumer<? super K> arg1)
- =
  public <U> void forEachKey(long arg0, java.util.function.Function<? super K, ? extends U> arg1, java.util.function.Consumer<? super U> arg2)
- =
  public void forEachValue(long arg0, java.util.function.Consumer<? super V> arg1)
- =
  public <U> void forEachValue(long arg0, java.util.function.Function<? super V, ? extends U> arg1, java.util.function.Consumer<? super U> arg2)
- =
  public V get(java.lang.Object arg0)
- =
  public V getOrDefault(java.lang.Object arg0, V arg1)
- =
  public int hashCode()
- =
  public boolean isEmpty()
- =
  public java.util.concurrent.ConcurrentHashMap.KeySetView<K, V> keySet()
- =
  public java.util.concurrent.ConcurrentHashMap.KeySetView<K, V> keySet(V arg0)
- =
  public java.util.Enumeration<K> keys()
- =
  public long mappingCount()
- =
  public V merge(K arg0, V arg1, java.util.function.BiFunction<? super V, ? super V, ? extends V> arg2)
- =
  public static <K> java.util.concurrent.ConcurrentHashMap.KeySetView<K, java.lang.Boolean> newKeySet()
- =
  public static <K> java.util.concurrent.ConcurrentHashMap.KeySetView<K, java.lang.Boolean> newKeySet(int arg0)
- =
  public V put(K arg0, V arg1)
- =
  public void putAll(java.util.Map<? extends K, ? extends V> arg0)
- =
  public V putIfAbsent(K arg0, V arg1)
- =
  public <U> U reduce(long arg0, java.util.function.BiFunction<? super K, ? super V, ? extends U> arg1, java.util.function.BiFunction<? super U, ? super U, ? extends U> arg2)
- =
  public java.util.Map.Entry<K, V> reduceEntries(long arg0, java.util.function.BiFunction<java.util.Map.Entry<K, V>, java.util.Map.Entry<K, V>, ? extends java.util.Map.Entry<K, V>> arg1)
- =
  public <U> U reduceEntries(long arg0, java.util.function.Function<java.util.Map.Entry<K, V>, ? extends U> arg1, java.util.function.BiFunction<? super U, ? super U, ? extends U> arg2)
- =
  public double reduceEntriesToDouble(long arg0, java.util.function.ToDoubleFunction<java.util.Map.Entry<K, V>> arg1, double arg2, java.util.function.DoubleBinaryOperator arg3)
- =
  public int reduceEntriesToInt(long arg0, java.util.function.ToIntFunction<java.util.Map.Entry<K, V>> arg1, int arg2, java.util.function.IntBinaryOperator arg3)
- =
  public long reduceEntriesToLong(long arg0, java.util.function.ToLongFunction<java.util.Map.Entry<K, V>> arg1, long arg2, java.util.function.LongBinaryOperator arg3)
- =
  public K reduceKeys(long arg0, java.util.function.BiFunction<? super K, ? super K, ? extends K> arg1)
- =
  public <U> U reduceKeys(long arg0, java.util.function.Function<? super K, ? extends U> arg1, java.util.function.BiFunction<? super U, ? super U, ? extends U> arg2)
- =
  public double reduceKeysToDouble(long arg0, java.util.function.ToDoubleFunction<? super K> arg1, double arg2, java.util.function.DoubleBinaryOperator arg3)
- =
  public int reduceKeysToInt(long arg0, java.util.function.ToIntFunction<? super K> arg1, int arg2, java.util.function.IntBinaryOperator arg3)
- =
  public long reduceKeysToLong(long arg0, java.util.function.ToLongFunction<? super K> arg1, long arg2, java.util.function.LongBinaryOperator arg3)
- =
  public double reduceToDouble(long arg0, java.util.function.ToDoubleBiFunction<? super K, ? super V> arg1, double arg2, java.util.function.DoubleBinaryOperator arg3)
- =
  public int reduceToInt(long arg0, java.util.function.ToIntBiFunction<? super K, ? super V> arg1, int arg2, java.util.function.IntBinaryOperator arg3)
- =
  public long reduceToLong(long arg0, java.util.function.ToLongBiFunction<? super K, ? super V> arg1, long arg2, java.util.function.LongBinaryOperator arg3)
- =
  public V reduceValues(long arg0, java.util.function.BiFunction<? super V, ? super V, ? extends V> arg1)
- =
  public <U> U reduceValues(long arg0, java.util.function.Function<? super V, ? extends U> arg1, java.util.function.BiFunction<? super U, ? super U, ? extends U> arg2)
- =
  public double reduceValuesToDouble(long arg0, java.util.function.ToDoubleFunction<? super V> arg1, double arg2, java.util.function.DoubleBinaryOperator arg3)
- =
  public int reduceValuesToInt(long arg0, java.util.function.ToIntFunction<? super V> arg1, int arg2, java.util.function.IntBinaryOperator arg3)
- =
  public long reduceValuesToLong(long arg0, java.util.function.ToLongFunction<? super V> arg1, long arg2, java.util.function.LongBinaryOperator arg3)
- =
  public V remove(java.lang.Object arg0)
- =
  public boolean remove(java.lang.Object arg0, java.lang.Object arg1)
- =
  public V replace(K arg0, V arg1)
- =
  public boolean replace(K arg0, V arg1, V arg2)
- =
  public void replaceAll(java.util.function.BiFunction<? super K, ? super V, ? extends V> arg0)
- =
  public <U> U search(long arg0, java.util.function.BiFunction<? super K, ? super V, ? extends U> arg1)
- =
  public <U> U searchEntries(long arg0, java.util.function.Function<java.util.Map.Entry<K, V>, ? extends U> arg1)
- =
  public <U> U searchKeys(long arg0, java.util.function.Function<? super K, ? extends U> arg1)
- =
  public <U> U searchValues(long arg0, java.util.function.Function<? super V, ? extends U> arg1)
- =
  public int size()
- =
  public java.lang.String toString()
- =
  public java.util.Collection<V> values()

## Serialized Form

=

### serialVersionUID

=7249069246763182397

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException
- =
  private void writeObject(java.io.ObjectOutputStream arg0) throws java.io.IOException

## Summary

No differences.