Module java.base
Package java.util

# Class Hashtable

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

## Constructors

- =
  public Hashtable()
- =
  public Hashtable(int arg0)
- =
  public Hashtable(int arg0, float arg1)
- =
  public Hashtable(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 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(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 int hashCode()
- =
  public boolean isEmpty()
- =
  public java.util.Set<K> keySet()
- =
  public java.util.Enumeration<K> keys()
- =
  public V merge(K arg0, V arg1, java.util.function.BiFunction<? super V, ? super V, ? extends V> arg2)
- =
  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)
- =
  protected void rehash()
- =
  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.lang.String toString()
- =
  public java.util.Collection<V> values()

## Serialized Form

=

### serialVersionUID

=1421746759512286392

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