Class HashMap

Description

HashMap of objects that can be administered and searched, while hiding the internal implementation. This is an implementation of the HashMap class in the Java language.

  • author: Arnold Cano
  • version: $Id: HashMap.php,v 1.2.16.1 2011/10/04 11:19:40 afelixf Exp $

Located in /phrame/util/HashMap.php (line 10)

Object
   |
   --HashMap
Direct descendents
Class Description
ActionMapping The ActionMapping class represents the information that the ActionController knows about the ActionMapping of a particular request to an instance of a particular Action class. The ActionMapping is passed to the perform() method of the Action class itself, enabling access to this information directly.
Variable Summary
array $_values
Method Summary
HashMap HashMap ([array $values = array()])
void clear ()
boolean containsKey (mixed $key)
boolean containsValue (mixed $value)
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 15)
Methods
Constructor HashMap (line 23)

Create a HashMap with the specified values.

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

Removes all mappings from this map.

  • access: public
void clear ()
containsKey (line 45)

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

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

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

  • access: public
boolean containsValue (mixed $value)
  • mixed $value
get (line 68)

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

Redefined in descendants as:
isEmpty (line 78)

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

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

Returns an array of the keys contained in this map.

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

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 112)

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 126)

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

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

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

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

Returns an array of the values contained in this map.

  • access: public
array values ()

Inherited Methods

Inherited From Object

Object::equals()
Object::toString()

Documentation generated on Wed, 05 Oct 2011 10:36:31 +0200 by phpDocumentor 1.4.1