Java Map Put putAll(Map original, Map... others)

Here you can find the source of putAll(Map original, Map... others)

Description

put All

License

Apache License

Declaration

public static Map putAll(Map original, Map... others) 

Method Source Code

//package com.java2s;
/*//from  w w  w.j a  v a 2 s  .  c o m
 * Copyright 2010 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *     http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import java.util.*;

public class Main {
    public static Map putAll(Map original, Map... others) {
        for (Map other : others) {
            original.putAll(other);
        }
        return original;
    }
}

Related

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