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