Performance-related settings for a hashtable based
collection like HashMap
or HashSet
.
The size of the backing Array
is called the capacity
of the hashtable.
initialCapacity
.loadFactor
.growthFactor
.no subtypes hierarchy
Initializer |
Hashtable(Integer initialCapacity = ..., Float loadFactor = ..., Float growthFactor = ...) Parameters:
|
Attributes | |
growthFactor | Source Codeshared Float growthFactor The factor used to determine the new size of the backing array when a new backing array is allocated. |
initialCapacity | Source Codeshared Integer initialCapacity The initial capacity of the backing array. |
loadFactor | Source Codeshared Float loadFactor The ratio between the number of elements and the capacity which triggers a rebuild of the hash set. |
Inherited Attributes |
Attributes inherited from: Object |
Methods | |
capacity | Source Codeshared Integer capacity(Integer length) |
rehash | Source Codeshared Boolean rehash(Integer length, Integer capacity) |
Inherited Methods |
Methods inherited from: Object |