Here you can find the source of map(Map.Entry
public static Map<String, Object> map(Map.Entry<String, Object>... entries)
//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; } }