Class HashMap

Object
   |
   --HashMap

Classes extended from HashMap:

ActionForm, ActionMapping

Located in File: Program_Root/util/HashMap.php


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.

Class Variable Summary
$_values
Default Value: ->array()<-

Inherited Class Variable Summary

Inherited Method Summary
Inherited From Class Object
Function Description
clone ( )
equals ( [$object = ] )
toString ( )

Method Summary
void constructor HashMap ( [$values = array()] )
void clear ( )
boolean containsKey ( $key )
boolean containsValue ( $value )
mixed get ( $key )
boolean isEmpty ( )
array keySet ( )
mixed put ( $key, $value )
void putAll ( $values )
void remove ( $key )
integer size ( )
array values ( )
Variable Detail

$_values

Data type: array



Method Detail

constructor HashMap

void constructor HashMap ( [$values = array()] )

Create a HashMap with the specified values.
Function Parameters:
- array $values:
Function Info:
Access - public

clear

void clear ( )

Removes all mappings from this map.
Function Parameters:
Function Info:
Access - public

containsKey

boolean containsKey ( $key )

Returns true if this map contains a mapping for the specified key.
Function Parameters:
- mixed $key:
Function Info:
Access - public

containsValue

boolean containsValue ( $value )

Returns true if this map maps one or more keys to the specified value.
Function Parameters:
- mixed $value:
Function Info:
Access - public

get

mixed get ( $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.
Function Parameters:
- mixed $key:
Function Info:
Access - public

isEmpty

boolean isEmpty ( )

Returns true if this map contains no key-value mappings.
Function Parameters:
Function Info:
Access - public

keySet

array keySet ( )

Returns an array of the keys contained in this map.
Function Parameters:
Function Info:
Access - public

put

mixed put ( $key, $value )

Associates the specified value with the specified key in this map.
Function Parameters:
- mixed $key:
- mixed $value:
Function Info:
Access - public

putAll

void putAll ( $values )

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.
Function Parameters:
- mixed $values:
Function Info:
Access - public

remove

void remove ( $key )

Removes the mapping for this key from this map if present.
Function Parameters:
- mixed $key:
Function Info:
Access - public

size

integer size ( )

Returns the number of key-value mappings in this map.
Function Parameters:
Function Info:
Access - public

values

array values ( )

Returns an array of the values contained in this map.
Function Parameters:
Function Info:
Access - public