public class Hashtable extends Dictionary implements Map
This class implements a hashtable, which maps keys to values. Any non-null object can be used as a key or as a value.
To successfully store and retrieve objects from a hashtable, the objects used as keys must implement the hashCode method and the equals method.
Constructor |
Hashtable() Constructs a new, empty hashtable with a default initial capacity (11) and load factor, which is 0.75. |
Hashtable(int initialCapacity) Constructs a new, empty hashtable with the specified initial capacity and default load factor, which is 0.75. |
Hashtable(int initialCapacity, float loadFactor) Constructs a new, empty hashtable with the specified initial capacity and the specified load factor. |
Hashtable(Map t) Constructs a new hashtable with the same mappings as the given Map. |
0 comments :
Post a Comment