title: How to deepclone Map with List as value
body: <p>Is this the best way to <strong>deepclone</strong> this data structure example: <code>Map&lt;String, List&lt;Object&gt;&gt;</code>?</p>
  
  <pre><code>Map&lt;String, List&lt;Object&gt;&gt; mapB = new LinkedHashMap&lt;String, List&lt;Object&gt;&gt;();
  for(String key: mapA.keySet()){
        mapB.put(key, new ArrayList&lt;Object&gt;());
        mapB.get(key).addAll(mapA.get(key));
  }
  </code></pre>
  
  <p>Thanks for your time.</p>