Method |
Description |
|
clear ( ) : void |
Removes all keys and values from the map. |
|
contains ( mixed $key ) : boolean |
Returns whether their is value associated with the supplied key. |
|
get ( mixed $key ) : mixed |
Returns the value associated with the supplied key or null
if it does not exist. |
|
groupBy ( callable $groupKeyFunction ) : Pinq\Iterators\IOrderedMap |
Groups the keys / values using the supplied function
into new ordered map. |
|
keys ( ) : array |
Returns all the keys from the map as an array. |
|
map ( callable $function ) : Pinq\Iterators\IOrderedMap |
Maps the keys / values of the dictionary to new dictionary. |
|
multisort ( array $orderFunctions, array $isAscending ) : Pinq\Iterators\IOrderedMap |
Creates a new ordered map with the keys and values
sorted according the the supplied functions and order
directions. |
|
offsetGet ( mixed $key ) : mixed |
Returns the value associated with the supplied key or null
if it does not exist. |
|
remove ( mixed $key ) : boolean |
Removes the element (if exists) with the supplied key. |
|
set ( mixed $key, mixed $value ) : void |
Sets the supplied key to the supplied value. |
|
setAll ( Traversable $elements ) : void |
Sets the supplied keys and values from the elements iterator. |
|
setRef ( mixed $key, mixed &$value ) : void |
Sets the supplied key to the supplied value by reference. |
|
values ( ) : array |
Returns all the values from the map as an array. |
|
walk ( callable $function ) : void |
Walks the elements with the supplied function |
|