boolean |
clear ()
Removes all the keys and the associated values in this map |
mixed|null |
get (mixed $key)
Returns the value associated with the specified key |
boolean |
has (mixed $key)
Determines whether this map contains an association for the specified key |
boolean |
hasAll (array|object $keys)
Determines whether this map contains all associations for the keys in the specified object |
boolean |
hasAllValues (array|object $values)
Determines whether this map contains all the values in the specified object |
boolean |
hasValue (mixed $value)
Determines whether this map contains the specified value |
boolean |
isEmpty ()
Determines whether this map contains no association |
boolean |
put (mixed $key, mixed $value)
Inserts or replaces the association for the specified key and value into this map |
boolean |
putAll (array|object $map, array|object $t)
Inserts or replaces the associations for all the keys and values in the specified object into this map |
boolean |
remove (mixed $key)
Removes the specified key and associated value from this map |
boolean |
removeAll (array|object $keys)
Removes all the keys and associated values in the specified object from this map |
boolean |
set (mixed $key, mixed $value)
Alias of put() |
int |
size ()
Returns the number of associations between key and value in this map |
array |
toArray ()
Converts this map to an associated array |
array |
toKeyArray ()
Returns an array containing all the keys in this map |
array |
toValueArray ()
Returns an array containing all the values in this map |
mixed |
__get (mixed $name)
|
boolean |
__isset (mixed $name)
|
mixed |
__set (mixed $name, mixed $value)
|
void |
__unset (mixed $name)
|
Removes all the keys and the associated values in this map
public boolean clear ()
Returns the value associated with the specified key
mixed $key
Key associated with the value to be retrieved
public mixed|null get (mixed $key)
Determines whether this map contains an association for the specified key
mixed $key
Key to determine
public boolean has (mixed $key)
Determines whether this map contains all associations for the keys in the specified object
array|object $keys
Object containing keys to determine
public boolean hasAll (array|object $keys)
Determines whether this map contains all the values in the specified object
array|object $values
Object containing values to determine
public boolean hasAllValues (array|object $values)
Determines whether this map contains the specified value
mixed $value
Value to determine
public boolean hasValue (mixed $value)
Determines whether this map contains no association
public boolean isEmpty ()
Inserts or replaces the association for the specified key and value into this map
mixed $key
Key to be inserted
mixed $value
Value to be inserted or replaced
public boolean put (mixed $key, mixed $value)
Inserts or replaces the associations for all the keys and values in the specified object into this map
array|object $t
Object which contains keys and values to be inserted or replaced
$map
public boolean putAll (array|object $map, array|object $t)
Removes the specified key and associated value from this map
mixed $key
Key to be removed
public boolean remove (mixed $key)
Removes all the keys and associated values in the specified object from this map
array|object $keys
Object containing keys to associated with the values to be removed
public boolean removeAll (array|object $keys)
Alias of put()
mixed $key
Key to be inserted
mixed $value
Value to be inserted and associated with the key
public boolean set (mixed $key, mixed $value)
Returns the number of associations between key and value in this map
public int size ()
Converts this map to an associated array
public array toArray ()
Returns an array containing all the keys in this map
public array toKeyArray ()
Returns an array containing all the values in this map
public array toValueArray ()
mixed $name
public mixed __get (mixed $name)
mixed $name
public boolean __isset (mixed $name)
mixed $name
mixed $value
public mixed __set (mixed $name, mixed $value)
mixed $name
public void __unset (mixed $name)