I would like to know what is the use of rehash() method. when do we use it. What is the significance of using it. Any ideas, suggestions, resources, links highly appreciated. Thanks in advance
Joined: Oct 24, 2006
* Increases the capacity of and internally reorganizes this
* hashtable, in order to accommodate and access its entries more
* efficiently. This method is called automatically when the
* number of keys in the hashtable exceeds this hashtable's capacity
* and load factor.
protected void rehash()
The JavaDoc says it all. Besides, you can only invoke this method if you extend from Hashtable, since it's protected.
Most likely, you'll never need to deal with it (or even know of its existence).
Joined: Oct 13, 2005
Costi Ciudatu wrote:. . . Most likely, you'll never need to deal with it (or even know of its existence).