Java Map Put putAll(Map dest, Collection src, V value)

Here you can find the source of putAll(Map dest, Collection src, V value)

Description

put All

License

Open Source License

Declaration

public static <K, V> void putAll(Map<K, V> dest, Collection<K> src, V value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Collection;
import java.util.Map;

public class Main {
    public static <K, V> void putAll(Map<K, V> dest, Collection<K> src, V value) {
        for (K k : src) {
            dest.put(k, value);/*  ww  w  . j av  a2s.c o m*/
        }
    }
}

Related

  1. put2DayOfWeekMaps(int pDayOfWeek, String pDayName)
  2. putAbsent(Map dest, Map src)
  3. putAll(final Map dst, final Map src)
  4. putAll(M map, Iterable> values)
  5. putAll(Map original, Map... others)
  6. putAll(Map map, Map otherMap)
  7. putAll(Map map, Object... keysAndValues)
  8. putAll(Map model, String prefix, Map subModel)
  9. putAll(Map map, String prefix, Map values)