Here you can find the source of clone(Map aMap)
public static Map clone(Map aMap)
//package com.java2s; import java.util.*; public class Main { /**/*from www .j a v a 2 s . co m*/ * Clones a map. */ public static Map clone(Map aMap) { if (aMap instanceof HashMap) return (Map) ((HashMap) aMap).clone(); if (aMap instanceof Hashtable) return (Map) ((Hashtable) aMap).clone(); return aMap == null ? null : new HashMap(aMap); } }