Esempio n. 1
0
 /**
  * @return A {@link PersistentMap} consisting of the associations of the map init; implemented as
  *     hash map.
  */
 public static <K, V> PersistentMap<K, V> hashMap(Map<? extends K, ? extends V> init) {
   return PersistentHashMap.create(init);
 }
Esempio n. 2
0
 /**
  * @param keyValues An array containing key/value pairs; no type checking is made.
  * @return A {@link PersistentMap} with the given associations; implemented as hash map.
  */
 public static <K, V> PersistentMap<K, V> hashMap(Object... keyValues) {
   return PersistentHashMap.create(keyValues);
 }