|
DthingApi
|
Public Member Functions | |
| Hashtable () | |
| Hashtable (int capacity) | |
| Hashtable (int capacity, float loadFactor) | |
| Hashtable (Map<? extends K, ? extends V > map) | |
| synchronized Object | clone () |
| synchronized boolean | isEmpty () |
| synchronized int | size () |
| synchronized V | get (Object key) |
| synchronized boolean | containsKey (Object key) |
| synchronized boolean | containsValue (Object value) |
| boolean | contains (Object value) |
| synchronized V | put (K key, V value) |
| synchronized void | putAll (Map<? extends K, ? extends V > map) |
| synchronized V | remove (Object key) |
| synchronized void | clear () |
| synchronized Set< K > | keySet () |
| synchronized Collection< V > | values () |
| synchronized Set< Entry< K, V > > | entrySet () |
| synchronized Enumeration< K > | keys () |
| synchronized Enumeration< V > | elements () |
| synchronized boolean | equals (Object object) |
| synchronized int | hashCode () |
| synchronized String | toString () |
Public Member Functions inherited from java.util.Dictionary< K, V > | |
| Dictionary () | |
| abstract Enumeration< V > | elements () |
| abstract V | get (Object key) |
| abstract boolean | isEmpty () |
| abstract Enumeration< K > | keys () |
| abstract V | put (K key, V value) |
| abstract V | remove (Object key) |
| abstract int | size () |
Public Member Functions inherited from java.util.Map< K, V > | |
| void | putAll (Map<? extends K,? extends V > map) |
Protected Member Functions | |
| void | rehash () |
Hashtable is a synchronized implementation of Map. All optional operations are supported.
Neither keys nor values can be null. (Use
or
if you need null keys or values.)
| <K> | the type of keys maintained by this map |
| <V> | the type of mapped values |
|
inline |
|
inline |
Constructs a new
using the specified capacity and the default load factor.
| capacity | the initial capacity. |
|
inline |
Constructs a new
using the specified capacity and load factor.
| capacity | the initial capacity. |
| loadFactor | the initial load factor. |
|
inline |
Constructs a new instance of
containing the mappings from the specified map.
| map | the mappings to add. |
|
inline |
Removes all key/value pairs from this
, leaving the size zero and the capacity unchanged.
Implements java.util.Map< K, V >.
|
inline |
Returns a new
with the same key/value pairs, capacity and load factor.
|
inline |
Returns true if this
contains the specified object as the value of at least one of the key/value pairs.
| value | the object to look for as a value in this . |
|
inline |
Returns true if this
contains the specified object as a key of one of the key/value pairs.
| key | the object to look for as a key in this . |
Implements java.util.Map< K, V >.
|
inline |
Searches this
for the specified value.
| value | the object to search for. |
Implements java.util.Map< K, V >.
|
inline |
Returns an enumeration on the values of this
. The results of the Enumeration may be affected if the contents of this
are modified.
|
inline |
Returns a set of the mappings contained in this
. Each element in the set is a Map.Entry. The set is backed by this
so changes to one are reflected by the other. The set does not support adding.
Implements java.util.Map< K, V >.
|
inline |
Compares this
with the specified object and indicates if they are equal. In order to be equal,
must be an instance of Map and contain the same key/value pairs.
| object | the object to compare with this object. |
Implements java.util.Map< K, V >.
|
inline |
Returns the value associated with the specified key in this
.
| key | the key of the value returned. |
Implements java.util.Map< K, V >.
|
inline |
Returns an integer hash code for the receiver.
s which are equal return the same value for this method.
Implements java.util.Map< K, V >.
|
inline |
Returns true if this
has no key/value pairs.
Implements java.util.Map< K, V >.
|
inline |
Returns an enumeration on the keys of this
instance. The results of the enumeration may be affected if the contents of this
are modified.
|
inline |
Returns a set of the keys contained in this
. The set is backed by this
so changes to one are reflected by the other. The set does not support adding.
Implements java.util.Map< K, V >.
|
inline |
Associate the specified value with the specified key in this
. If the key already exists, the old value is replaced. The key and value cannot be null.
| key | the key to add. |
| value | the value to add. |
Implements java.util.Map< K, V >.
|
inline |
Copies every mapping to this
from the specified map.
| map | the map to copy mappings from. |
|
inlineprotected |
|
inline |
Removes the key/value pair with the specified key from this
.
| key | the key to remove. |
Implements java.util.Map< K, V >.
|
inline |
Returns the number of key/value pairs in this
.
Implements java.util.Map< K, V >.
|
inline |
|
inline |
Returns a collection of the values contained in this
. The collection is backed by this
so changes to one are reflected by the other. The collection does not support adding.
Implements java.util.Map< K, V >.
1.8.13