Example #1
0
 public static <K, V> HashMap<K, V> fromMap(Equal<K> eq, Hash<K> h, java.util.Map<K, V> map) {
   HashMap<K, V> m = hashMap(eq, h);
   for (Map.Entry<K, V> e : map.entrySet()) {
     m.set(e.getKey(), e.getValue());
   }
   return m;
 }
Example #2
0
 public HashMap(java.util.Map<K, V> map, final Equal<K> e, final Hash<K> h) {
   this(e, h);
   for (Map.Entry<K, V> entry : map.entrySet()) {
     set(entry.getKey(), entry.getValue());
   }
 }