Exemple #1
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);
 }
Exemple #2
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);
 }
Exemple #3
0
 /** @return An empty {@link PersistentMap}; implemented as hash map. */
 public static <K, V> PersistentMap<K, V> hashMap() {
   return PersistentHashMap.emptyMap();
 }