title: Convert Set<Map.Entry<K, V>> to HashMap<K, V>
body: <p>At one point in my code, I created a <code>Set&lt;Map.Entry&lt;K, V&gt;&gt;</code> from a map. Now I want to recreate the same map form, so I want to convert the <code>HashSet&lt;Map.Entry&lt;K, V&gt;&gt;</code> back into a <code>HashMap&lt;K, V&gt;</code>. Does Java have a native call for doing this, or do I have to loop over the set elements and build the map up manually?</p>