Class MapUtils
java.lang.Object
org.craftercms.commons.collections.MapUtils
Utility methods for maps.
- Author:
- cortiz
-
Method Summary
-
Method Details
-
deepMerge
Deep merges two maps- Parameters:
dst
- the map where elements will be merged intosrc
- the map with the elements to merge- Returns:
- a deep merge of the two given maps.
-
add
Adds the value under the specified key in the map. If there's no value in the map with the key, the value is put as is. If there's already a value, the original and the new value are added to a collection and put under the key.- Parameters:
map
- the mapkey
- the keyvalue
- the value to add
-