Example usage for Java java.util Hashtable fields, constructors, methods, implement or subclass
The text is from its open source code.
Set | keySet Each of these fields are initialized to contain an instance of the appropriate view the first time this view is requested. |
Set | entrySet |
Collection | values |
Hashtable() Constructs a new, empty hashtable with a default initial capacity (11) and load factor (0.75). | |
Hashtable(int initialCapacity, float loadFactor) Constructs a new, empty hashtable with the specified initial capacity and the specified load factor. | |
Hashtable(int initialCapacity) Constructs a new, empty hashtable with the specified initial capacity and default load factor (0.75). | |
Hashtable(Map extends K, ? extends V> t) Constructs a new hashtable with the same mappings as the given Map. | |
Hashtable(Void dummy) A constructor chained from Properties keeps Hashtable fields uninitialized since they are not used. |
void | clear() Clears this hashtable so that it contains no keys. |
Object | clone() Creates a shallow copy of this hashtable. |
boolean | contains(Object value) Tests if some key maps into the specified value in this hashtable. |
boolean | containsKey(Object key) Tests if the specified object is a key in this hashtable. |
boolean | containsValue(Object value) Returns true if this hashtable maps one or more keys to this value. |
Enumeration | elements() Returns an enumeration of the values in this hashtable. |
void | forEach(BiConsumer super K, ? super V> action) |
V | get(Object key) Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. |
Class> | getClass() Returns the runtime class of this Object . |
int | hashCode() Returns the hash code value for this Map as per the definition in the Map interface. |
boolean | isEmpty() Tests if this hashtable maps no keys to values. |
V | put(K key, V value) Maps the specified key to the specified value in this hashtable. |
void | putAll(Map extends K, ? extends V> t) Copies all of the mappings from the specified map to this hashtable. |
V | remove(Object key) Removes the key (and its corresponding value) from this hashtable. |
int | size() Returns the number of keys in this hashtable. |
String | toString() Returns a string representation of this Hashtable object in the form of a set of entries, enclosed in braces and separated by the ASCII characters " , " (comma and space). |