Class HashMap

Description

Basic PHP implementation of Java HashMap object; used to simplify automatic source code conversion

Basic PHP implementation of Java HashMap object; used to simplify automatic source code conversion

Located in /ExtensionLib.php (line 7)


	
			
Variable Summary
array $_values
Method Summary
HashMap HashMap ([array $values = array()])
void clear ()
boolean contains (string $key, string $value)
boolean containsKey (mixed $key)
boolean containsValue (mixed $value)
void entrySet ()
mixed get (mixed $key)
boolean isEmpty ()
array keySet ()
mixed put (mixed $key, mixed $value)
void putAll (mixed $values)
void remove (mixed $key)
integer size ()
array values ()
Variables
array $_values = array ( ) (line 11)
  • access: private
Methods
Constructor HashMap (line 19)

Create a HashMap with the specified values.

Create a HashMap with the specified values.

  • access: public
HashMap HashMap ([array $values = array()])
  • array $values
clear (line 29)

Removes all mappings from this map.

Removes all mappings from this map.

  • access: public
void clear ()
contains (line 59)

Indicates if the specified mapped property contain a value for the specified key value.

Indicates if the specified mapped property contain a value for the specified key value.

  • access: public
boolean contains (string $key, string $value)
  • string $key
  • string $value
containsKey (line 39)

Returns true if this map contains a mapping for the specified key.

Returns true if this map contains a mapping for the specified key.

  • access: public
boolean containsKey (mixed $key)
  • mixed $key
containsValue (line 49)

Returns true if this map maps one or more keys to the specified value.

Returns true if this map maps one or more keys to the specified value.

  • access: public
boolean containsValue (mixed $value)
  • mixed $value
entrySet (line 156)
void entrySet ()
get (line 73)

Returns the value to which the specified key is mapped in this identity hash map, or null if the map contains no mapping for this key.

Returns the value to which the specified key is mapped in this identity hash map, or null if the map contains no mapping for this key.

  • access: public
mixed get (mixed $key)
  • mixed $key
isEmpty (line 82)

Returns true if this map contains no key-value mappings.

Returns true if this map contains no key-value mappings.

  • access: public
boolean isEmpty ()
keySet (line 91)

Returns an array of the keys contained in this map.

Returns an array of the keys contained in this map.

  • access: public
array keySet ()
put (line 102)

Associates the specified value with the specified key in this map.

Associates the specified value with the specified key in this map.

  • access: public
mixed put (mixed $key, mixed $value)
  • mixed $key
  • mixed $value
putAll (line 115)

Copies all of the mappings from the specified map to this map. mappings will replace any mappings that this map had for any of the keys currently in the specified map.

Copies all of the mappings from the specified map to this map. These mappings will replace any mappings that this map had for any of the keys currently in the specified map.

  • access: public
void putAll (mixed $values)
  • mixed $values
remove (line 128)

Removes the mapping for this key from this map if present.

Removes the mapping for this key from this map if present.

  • access: public
void remove (mixed $key)
  • mixed $key
size (line 141)

Returns the number of key-value mappings in this map.

Returns the number of key-value mappings in this map.

  • access: public
integer size ()
values (line 150)

Returns an array of the values contained in this map.

Returns an array of the values contained in this map.

  • access: public
array values ()

Documentation generated on Thu, 20 Mar 2008 16:22:21 -0400 by phpDocumentor 1.4.0