Project Outline
«
SmilText JS

Class cwi.adt.Hashtable

Defined in: cwi.adt.js.

Constructor Summary
new cwi.adt.Hashtable () Implementation of Hashtable
Method Summary
put(key, value) Store an element related to a given key.
get(key) Return an element related to a given key.
remove(key) Remove and return the element given its key.
getSize() Return the number of elements in the Hashtable.
toString() Return a string representation of the Hashtable object in the form of a set of entries, enclosed in braces and separated by the ASCII characters " ; " (semicolon and space).
Constructor Detail
new cwi.adt.Hashtable()
Implementation of Hashtable

Author: Uzi Refaeli.

									
									
									
										
										
										
										
										
										
										
											
See:
reference
Method Detail
put(key, value)
Store an element related to a given key.

										
									
Parameters:
{string} key key name
{Object} value the object to be inserted
get(key) : Object
Return an element related to a given key.

										
									
Parameters:
{string} key key name
Returns:
{Object} The object related to the given key
remove(key) : Object
Remove and return the element given its key.

										
									
Parameters:
{string} key key name
Returns:
{Object}
getSize() : integer
Return the number of elements in the Hashtable.

										
									
Returns:
{integer}
toString() : string
Return a string representation of the Hashtable object in the form of a set of entries, enclosed in braces and separated by the ASCII characters " ; " (semicolon and space). Each entry is rendered as the key, an equals sign =, and the associated element, where the toString method is used to convert the key and element to strings.

										
									
Returns:
{string}
Documentation generated by JsDoc Toolkit 2.3.2 on Mon Nov 09 2009 18:20:41 GMT+0100 (CET)