Implementation of a hash table, that maps keys to values
The keys must be not null and not empty, and can't be duplicated. The values can be of any type.
Located in /core/util/Hashmap.class.php (line 41)
PHP2Go | --Hashmap
Class constructor
Get the value of a given map entry, requiring it to be of a given type
The fallback value is returned when the key is not found or when the value is of a different data type.
Accepted types: string, integer, float, double, array, hash, resource, boolean, bool, object, null.
Checks if a key exists, and if its value is of a given type
Accepted types: string, integer, float, double, array, hash, resource, boolean, bool, object, null.
Clears the map
Checks if a given key exists
Checks if a given value exists
Sorts the map by values based on an user-defined comparison function
Get an element of the map, given its key
Checks if the map is empty
Get hash keys
Merge the hash with another collection
Adds or changes a key-value pair
Adds all members of a collection in the map
Adds or changes a key passing the value by reference
Removes a given key from the map
Sorts the map in reverse order (highest to lowest)
Get map size
Sorts the map
Swap the values of two map keys
Builds an array representation of the hash map
Get hash values
Builds a string representation of the hash map
Inherited From PHP2Go
PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()
Documentation generated on Sun, 07 Oct 2007 19:25:53 -0300 by phpDocumentor 1.3.2