java.util

Class Hashtable<K,V>

public class Hashtable<K,V> extends Dictionary<K,V> implements Map<K,V>, Cloneable, Serializable

Constructor Summary
Hashtable(int initialCapacity, float loadFactor)
Hashtable(int initialCapacity)
Hashtable()
Hashtable(Map<K,V> t)
Method Summary
voidclear()
Objectclone()
booleancontains(Object value)
booleancontainsKey(Object key)
booleancontainsValue(Object value)
Enumeration<V>elements()
Set<Map.Entry<K,V>>entrySet()
booleanequals(Object o)
Vget(K key)
inthashCode()
booleanisEmpty()
Enumeration<K>keys()
Set<K>keySet()
Vput(K key, V value)
<K1 extends K,V1 extends V> voidputAll(Map<K1,V1> t)
protected voidrehash()
Vremove(Object key)
intsize()
StringtoString()
Collection<V>values()

Constructor Detail

Hashtable

public Hashtable(int initialCapacity, float loadFactor)

Hashtable

public Hashtable(int initialCapacity)

Hashtable

public Hashtable()

Hashtable

public Hashtable(Map<K,V> t)

Method Detail

clear

public void clear()

clone

public Object clone()

contains

public boolean contains(Object value)

containsKey

public boolean containsKey(Object key)

containsValue

public boolean containsValue(Object value)

elements

public Enumeration<V> elements()

entrySet

public Set<Map.Entry<K,V>> entrySet()

equals

public boolean equals(Object o)

get

public V get(K key)

hashCode

public int hashCode()

isEmpty

public boolean isEmpty()

keys

public Enumeration<K> keys()

keySet

public Set<K> keySet()

put

public V put(K key, V value)

putAll

public <K1 extends K,V1 extends V> void putAll(Map<K1,V1> t)

rehash

protected void rehash()

remove

public V remove(Object key)

size

public int size()

toString

public String toString()

values

public Collection<V> values()