|
Joutsen v0.5.0+18-g5fdf104
|
Additional (convenience) methods for maps. More...
Static Public Member Functions | |
| static ValueType | GetOrAdd< KeyType, ValueType > (this Map< KeyType, ValueType > map, KeyType key, ValueType defaultValue) |
| Fetches a value associated with a key or adds a default value if the key does not exists. | |
| static ValueType | GetAndRemove< KeyType, ValueType > (this Map< KeyType, ValueType > map, KeyType key) |
| Fetches a value associated with a key and removes it from the map. | |
| static String | ToString< KeyType, ValueType > (this Map< KeyType, ValueType > map, int maxNumberOfPrintedCollectionElements=50) |
Additional (convenience) methods for maps.
|
static |
Fetches a value associated with a key and removes it from the map.
| map | the map this operation is performed on |
| key | the key to lookup and return the value |
|
static |
Fetches a value associated with a key or adds a default value if the key does not exists.
| map | the map this operation is performed on |
| key | the key to lookup and return the value for. Also the key used to add the value if it is missing. |
| defaultValue | the value that will be added to the map if the key does not exist |
|
static |