Java Map Create map(Map.Entry... entries)

Here you can find the source of map(Map.Entry... entries)

Description

map

License

Open Source License

Declaration

public static Map<String, Object> map(Map.Entry<String, Object>... entries) 

Method Source Code

//package com.java2s;
//License from project: GNU General Public License 

import java.util.HashMap;

import java.util.Map;

public class Main {
    public static Map<String, Object> map(Map.Entry<String, Object>... entries) {
        Map<String, Object> map = new HashMap<String, Object>();
        for (Map.Entry<String, Object> entry : entries) {
            map.put(entry.getKey(), entry.getValue());
        }//w w w  . ja va 2s.c  o m
        return map;
    }
}

Related

  1. map(K[] keys, V[] values)
  2. map(M map, K key, V value)
  3. map(Map map)
  4. map(Map map, Object key)
  5. map(Map.Entry... entries)
  6. map(Map accumulator, Key key, Value value)
  7. map(Map outcomeMapping, String line, int firstTabIdx)
  8. map(Object key, Object value)
  9. map(Object obj)