Module java.base
Package java.util

# Class HashMap

=
public class HashMap<K, V>
extends java.util.AbstractMap<K, V>
implements java.io.Serializable, java.lang.Cloneable, java.util.Map<K, V>

## Constructors

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

## Methods

- =
  public void clear()
- =
  public java.lang.Object clone()
- =
  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 containsKey(java.lang.Object arg0)
- =
  public boolean containsValue(java.lang.Object arg0)
- =
  public java.util.Set<java.util.Map.Entry<K, V>> entrySet()
- =
  public void forEach(java.util.function.BiConsumer<? super K, ? super V> arg0)
- =
  public V get(java.lang.Object arg0)
- =
  public V getOrDefault(java.lang.Object arg0, V arg1)
- =
  public boolean isEmpty()
- =
  public java.util.Set<K> keySet()
- =
  public V merge(K arg0, V arg1, java.util.function.BiFunction<? super V, ? super V, ? extends V> arg2)
- =
  public static <K, V> java.util.HashMap<K, V> newHashMap(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 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 int size()
- =
  public java.util.Collection<V> values()

## Serialized Form

=

### serialVersionUID

=362498820763181265

### Serialized Fields

- =
  float loadFactor
- =
  int threshold

### 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.