Java Map Merge merge(Map map, Map... maps)

Here you can find the source of merge(Map map, Map... maps)

Description

merge

License

Apache License

Declaration

@SafeVarargs
    public static <K, V> Map<K, V> merge(Map<K, V> map, Map<K, V>... maps) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Map;

public class Main {
    @SafeVarargs
    public static <K, V> Map<K, V> merge(Map<K, V> map, Map<K, V>... maps) {
        if (maps != null && maps.length > 0) {
            for (Map<K, V> m : maps)
                map.putAll(m);/*w  w  w.ja v a2s.c om*/
        }

        return map;
    }
}

Related

  1. merge(Map map1, Map map2)
  2. merge(Map options, Map addition)
  3. merge(Map into, Map with)
  4. merge(Map left, Map right)
  5. merge(Map map, K key, V value)
  6. merge(Map master, Map copy)
  7. merge(Map src, Map dest)
  8. merge(Map first, Map second)
  9. merge(Map map1, Map map2)