Ejemplo n.º 1
0
 /**
  * Creates a new empty array map copying the entries of a given map.
  *
  * @param m a map.
  */
 public Int2DoubleArrayMap(final Int2DoubleMap m) {
   this(m.size());
   putAll(m);
 }
Ejemplo n.º 2
0
 /**
  * Creates a new hash map copying a given type-specific one.
  *
  * @param m a type-specific map to be copied into the new hash map.
  * @param f the load factor.
  */
 public Int2DoubleOpenHashMap(final Int2DoubleMap m, final float f) {
   this(m.size(), f);
   putAll(m);
 }