Uses of Class
io.vavr.collection.HashMap
Packages that use HashMap
-
Uses of HashMap in io.vavr.collection
Fields in io.vavr.collection declared as HashMapModifier and TypeFieldDescriptionprivate static final HashMap<?, ?> HashMap.EMPTYLinkedHashMap.mapMethods in io.vavr.collection that return HashMapModifier and TypeMethodDescription<K2,V2> HashMap <K2, V2> HashMap.bimap(@NonNull Function<? super K, ? extends K2> keyMapper, @NonNull Function<? super V, ? extends V2> valueMapper) HashMap.createFromEntries(Iterable<Tuple2<K, V>> tuples) HashMap.distinct()HashMap.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) HashMap.distinctBy(@NonNull Function<? super Tuple2<K, V>, ? extends U> keyExtractor) HashMap.drop(int n) HashMap.dropRight(int n) static <K,V> HashMap <K, V> HashMap.empty()Returns the empty HashMap.static <K,V> HashMap <K, V> Returns a HashMap containing tuples returned byncalls to a given Suppliers.HashMap.filter(@NonNull BiPredicate<? super K, ? super V> predicate) HashMap.filterKeys(@NonNull Predicate<? super K> predicate) HashMap.filterValues(@NonNull Predicate<? super V> predicate) <K2,V2> HashMap <K2, V2> HashMap.flatMap(@NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) HashMap.init()<K2,V2> HashMap <K2, V2> HashMap.map(@NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) HashMap.mapKeys(@NonNull Function<? super K, ? extends K2> keyMapper, @NonNull BiFunction<? super V, ? super V, ? extends V> valueMerge) HashMap.merge(@NonNull Map<? extends K, U> that, @NonNull BiFunction<? super V, ? super U, ? extends V> collisionResolution) static <K,V> HashMap <K, V> Narrows aHashMap<? extends K, ? extends V>toHashMap<K, V>via a type-safe cast.static <K,V> HashMap <K, V> Returns a singletonHashMap, i.e.static <K,V> HashMap <K, V> HashMap.of(K key, V value) Returns a singletonHashMap, i.e.static <K,V> HashMap <K, V> HashMap.of(K k1, V v1, K k2, V v2) Creates a HashMap of the given list of key-value pairs.static <K,V> HashMap <K, V> HashMap.of(K k1, V v1, K k2, V v2, K k3, V v3) Creates a HashMap of the given list of key-value pairs.static <K,V> HashMap <K, V> HashMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) Creates a HashMap of the given list of key-value pairs.static <K,V> HashMap <K, V> HashMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) Creates a HashMap of the given list of key-value pairs.static <K,V> HashMap <K, V> HashMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) Creates a HashMap of the given list of key-value pairs.static <K,V> HashMap <K, V> HashMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) Creates a HashMap of the given list of key-value pairs.static <K,V> HashMap <K, V> HashMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8) Creates a HashMap of the given list of key-value pairs.static <K,V> HashMap <K, V> HashMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) Creates a HashMap of the given list of key-value pairs.static <K,V> HashMap <K, V> HashMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) Creates a HashMap of the given list of key-value pairs.static <K,V> HashMap <K, V> Returns aHashMap, from a source java.util.Map.static <T,K, V> HashMap <K, V> HashMap.ofAll(@NonNull Stream<? extends T> stream, @NonNull Function<? super T, ? extends K> keyMapper, @NonNull Function<? super T, ? extends V> valueMapper) Returns aHashMap, from entries mapped from stream.static <T,K, V> HashMap <K, V> HashMap.ofAll(@NonNull Stream<? extends T> stream, @NonNull Function<? super T, Tuple2<? extends K, ? extends V>> entryMapper) Returns aHashMap, from entries mapped from stream.static <K,V> HashMap <K, V> Creates a HashMap of the given entries.static <K,V> HashMap <K, V> Creates a HashMap of the given entries.static <K,V> HashMap <K, V> Creates a HashMap of the given entries.HashMap.put(@NonNull Tuple2<? extends K, U> entry, @NonNull BiFunction<? super V, ? super U, ? extends V> merge) HashMap.put(K key, U value, @NonNull BiFunction<? super V, ? super U, ? extends V> merge) HashMap.reject(@NonNull BiPredicate<? super K, ? super V> predicate) HashMap.rejectKeys(@NonNull Predicate<? super K> predicate) HashMap.rejectValues(@NonNull Predicate<? super V> predicate) HashMap.removeAll(@NonNull BiPredicate<? super K, ? super V> predicate) Deprecated.HashMap.removeKeys(@NonNull Predicate<? super K> predicate) Deprecated.HashMap.removeValues(@NonNull Predicate<? super V> predicate) Deprecated.HashMap.replaceAll(@NonNull BiFunction<? super K, ? super V, ? extends V> function) HashMap.replaceValue(K key, V value) HashMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) static <K,V> HashMap <K, V> HashMap.tabulate(int n, @NonNull Function<? super Integer, ? extends Tuple2<? extends K, ? extends V>> f) Returns an HashMap containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.HashMap.tail()HashMap.take(int n) HashMap.takeRight(int n) private static <K,V> HashMap <K, V> HashMap.wrap(@NonNull HashArrayMappedTrie<K, V> trie) Methods in io.vavr.collection that return types with arguments of type HashMapModifier and TypeMethodDescriptionHashMap.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aHashMap.Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aHashMap.HashMap.collector(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper) Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aHashMap.HashMap.computeIfAbsent(K key, @NonNull Function<? super K, ? extends V> mappingFunction) HashMap.computeIfPresent(K key, @NonNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) HashMap.grouped(int size) HashMap.initOption()HashMap.sliding(int size) HashMap.sliding(int size, int step) HashMap.tailOption()Methods in io.vavr.collection with parameters of type HashMapModifier and TypeMethodDescriptionstatic <K,V> HashMap <K, V> Narrows aHashMap<? extends K, ? extends V>toHashMap<K, V>via a type-safe cast.private static <K,V> LinkedHashMap <K, V> Construct Map with given values and key order.private static <K,V> LinkedHashMap <K, V> LinkedHashMap.wrapNonUnique(@NonNull Queue<Tuple2<K, V>> list, HashMap<K, V> map) Construct Map with given values and key order.Constructors in io.vavr.collection with parameters of type HashMap