public class Hashtable<K,V> extends Dictionary<K,V> implements Map<K,V>
| Constructor and Description |
|---|
Hashtable() |
Hashtable(int capacity) |
Hashtable(int capacity,
float loadFactor) |
Hashtable(Map<? extends K,? extends V> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(Object value) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Enumeration<V> |
elements() |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object object) |
V |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Enumeration<K> |
keys() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
protected void |
rehash() |
V |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Hashtable()
public Hashtable(int capacity)
public Hashtable(int capacity,
float loadFactor)
public boolean contains(Object value)
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public Enumeration<V> elements()
elements in class Dictionary<K,V>public boolean equals(Object object)
public int hashCode()
public boolean isEmpty()
public Enumeration<K> keys()
keys in class Dictionary<K,V>protected void rehash()
public int size()
Copyright © 2026. All rights reserved.