K
- the type of keys maintained by this map
V
- the type of mapped values
Serializable
, Cloneable
, Map<K,V>
Properties
, UIDefaults
Constructors
Constructs a new, empty hashtable with a default initial capacity (11) and load factor (0.75).
Constructs a new, empty hashtable with the specified initial capacity and default load factor (0.75).
Hashtable(int initialCapacity, float loadFactor)
Constructs a new, empty hashtable with the specified initial capacity and the specified load factor.
Constructs a new hashtable with the same mappings as the given Map.
void
Clears this hashtable so that it contains no keys.
Creates a shallow copy of this hashtable.
Attempts to compute a mapping for the specified key and its current mapped value, or null
if there is no current mapping (optional operation).
If the specified key is not already associated with a value (or is mapped to null
), attempts to compute its value using the given mapping function and enters it into this map unless null
(optional operation).
If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value (optional operation).
boolean
Tests if some key maps into the specified value in this hashtable.
boolean
Tests if the specified object is a key in this hashtable.
boolean
Returns true if this hashtable maps one or more keys to this value.
Returns an enumeration of the values in this hashtable.
Returns a
Set
view of the mappings contained in this map.
boolean
Compares the specified Object with this Map for equality, as per the definition in the Map interface.
Returns the value to which the specified key is mapped, or null
if this map contains no mapping for the key.
int
Returns the hash code value for this Map as per the definition in the Map interface.
boolean
Tests if this hashtable maps no keys to values.
Returns an enumeration of the keys in this hashtable.
Returns a
Set
view of the keys contained in this map.
If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value (optional operation).
Maps the specified key
to the specified value
in this hashtable.
void
Copies all of the mappings from the specified map to this hashtable.
protected void
Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently.
Removes the key (and its corresponding value) from this hashtable.
int
Returns the number of keys in this hashtable.
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).
Returns a
Collection
view of the values contained in this map.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4