Hashtable.Hashtable
Class Overview | Class Members |
This Package |
All Packages
public Hashtable( int initialCapacity,
float loadFactor )
Parameters
- initialCapacity
- the initial capacity of the hashtable.
- loadFactor
- a number between 0.0 and 1.0.
Description
Constructs a new, empty hashtable with the specified initial
capacity and the specified load factor.
Exceptions
IllegalArgumentException
if the initial capacity is less
than or equal to zero, or if the load factor is less than
or equal to zero.
public Hashtable( int initialCapacity )
Parameters
- initialCapacity
- the initial capacity of the hashtable.
Description
Constructs a new, empty hashtable with the specified initial capacity
and default load factor.
public Hashtable()
Description
Constructs a new, empty hashtable with a default capacity and load
factor.