.. java:import:: java.util LinkedHashMap .. java:import:: java.util Map .. java:import:: java.util Properties MotechMapUtils ============== .. java:package:: org.motechproject.commons.api :noindex: .. java:type:: public final class MotechMapUtils The \ ``MotechMapUtils``\ class contains methods that allow modifications and operations on maps Methods ------- asProperties ^^^^^^^^^^^^ .. java:method:: public static Properties asProperties(Map map) :outertype: MotechMapUtils Converts java.util.Map into java.util.Properties :param map: Map to convert :return: Properties, created from given map mergeMaps ^^^^^^^^^ .. java:method:: public static Map mergeMaps(Map overridingMap, Map baseMap) :outertype: MotechMapUtils Null-safe merge of two maps. If both parameters are null it returns empty map. If one of the maps is null, it returns the other one. If a key is present in two maps, the value in the merged map will be taken from the overriding map. :param overridingMap: The map overriding values in the base map :param baseMap: The base map :return: merged map