Uses of Interface
io.vavr.collection.SortedMap
Packages that use SortedMap
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
-
Uses of SortedMap in io.vavr
Modifier and TypeMethodDescriptionstatic <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap()Alias forTreeMap.empty()static <K extends Comparable<? super K>,V>
SortedMap<K, V> Deprecated.Will be removed in a future version.static <K,V> SortedMap <K, V> API.SortedMap(@NonNull Comparator<? super K> keyComparator) Alias forTreeMap.empty(Comparator)static <K,V> SortedMap <K, V> API.SortedMap(@NonNull Comparator<? super K> keyComparator, Tuple2<? extends K, ? extends V> @NonNull ... entries) Deprecated.Will be removed in a future version.static <K,V> SortedMap <K, V> API.SortedMap(@NonNull Comparator<? super K> keyComparator, K key, V value) Alias forTreeMap.of(Comparator, Object, Object)static <K extends Comparable<? super K>,V>
SortedMap<K, V> Deprecated.Will be removed in a future version.static <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap(K k1, V v1) Alias forTreeMap.of(Comparable, Object)static <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap(K k1, V v1, K k2, V v2) static <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap(K k1, V v1, K k2, V v2, K k3, V v3) static <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) static <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) static <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) static <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap(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) static <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap(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) static <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap(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) static <K extends Comparable<? super K>,V>
SortedMap<K, V> API.SortedMap(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) default <K,V> SortedMap <K, V> Value.toSortedMap(@NonNull Comparator<? super K> comparator, @NonNull Function<? super T, ? extends Tuple2<? extends K, ? extends V>> f) Converts this to aMap.default <K,V> SortedMap <K, V> Value.toSortedMap(@NonNull Comparator<? super K> comparator, @NonNull Function<? super T, ? extends K> keyMapper, @NonNull Function<? super T, ? extends V> valueMapper) Converts this to aMap.default <K extends Comparable<? super K>,V>
SortedMap<K, V> Value.toSortedMap(@NonNull Function<? super T, ? extends Tuple2<? extends K, ? extends V>> f) Converts this to aMap.default <K extends Comparable<? super K>,V>
SortedMap<K, V> Value.toSortedMap(@NonNull Function<? super T, ? extends K> keyMapper, @NonNull Function<? super T, ? extends V> valueMapper) Converts this to aMap. -
Uses of SortedMap in io.vavr.collection
Classes in io.vavr.collection that implement SortedMapModifier and TypeClassDescriptionfinal classTreeMap<K,V> An immutableSortedMapimplementation backed by a Red-Black tree.Methods in io.vavr.collection that return SortedMapModifier and TypeMethodDescription<K2,V2> SortedMap <K2, V2> SortedMap.bimap(@NonNull Comparator<? super K2> keyComparator, @NonNull Function<? super K, ? extends K2> keyMapper, Function<? super V, ? extends V2> valueMapper) Same asbimap(Function, Function), using a specific comparator for keys of the codomain of the givenkeyMapper.<K2,V2> SortedMap <K2, V2> SortedMap.bimap(@NonNull Function<? super K, ? extends K2> keyMapper, @NonNull Function<? super V, ? extends V2> valueMapper) SortedMap.distinct()SortedMap.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) SortedMap.distinctBy(@NonNull Function<? super Tuple2<K, V>, ? extends U> keyExtractor) SortedMap.drop(int n) SortedMap.dropRight(int n) SortedMap.filter(@NonNull BiPredicate<? super K, ? super V> predicate) SortedMap.filterKeys(@NonNull Predicate<? super K> predicate) SortedMap.filterValues(@NonNull Predicate<? super V> predicate) <K2,V2> SortedMap <K2, V2> SortedMap.flatMap(@NonNull Comparator<? super K2> keyComparator, @NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) Same asflatMap(BiFunction)but using a specific comparator for values of the codomain of the givenmapper.<K2,V2> SortedMap <K2, V2> SortedMap.flatMap(@NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) SortedMap.init()<K2,V2> SortedMap <K2, V2> SortedMap.map(@NonNull Comparator<? super K2> keyComparator, @NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) Same asmap(BiFunction), using a specific comparator for keys of the codomain of the givenmapper.<K2,V2> SortedMap <K2, V2> SortedMap.map(@NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) SortedMap.mapKeys(@NonNull Function<? super K, ? extends K2> keyMapper, @NonNull BiFunction<? super V, ? super V, ? extends V> valueMerge) SortedMap.merge(@NonNull Map<? extends K, U> that, @NonNull BiFunction<? super V, ? super U, ? extends V> collisionResolution) static <K,V> SortedMap <K, V> Narrows a widenedSortedMap<? extends K, ? extends V>toSortedMap<K, V>by performing a type-safe cast.SortedMap.put(@NonNull Tuple2<? extends K, U> entry, @NonNull BiFunction<? super V, ? super U, ? extends V> merge) SortedMap.put(K key, U value, @NonNull BiFunction<? super V, ? super U, ? extends V> merge) SortedMap.reject(@NonNull BiPredicate<? super K, ? super V> predicate) SortedMap.rejectKeys(@NonNull Predicate<? super K> predicate) SortedMap.rejectValues(@NonNull Predicate<? super V> predicate) SortedMap.removeAll(@NonNull BiPredicate<? super K, ? super V> predicate) Deprecated.SortedMap.removeKeys(@NonNull Predicate<? super K> predicate) Deprecated.SortedMap.removeValues(@NonNull Predicate<? super V> predicate) Deprecated.SortedMap.replaceAll(@NonNull BiFunction<? super K, ? super V, ? extends V> function) SortedMap.replaceValue(K key, V value) SortedMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) SortedMap.tail()SortedMap.take(int n) SortedMap.takeRight(int n) Methods in io.vavr.collection that return types with arguments of type SortedMapModifier and TypeMethodDescriptionSortedMap.computeIfAbsent(K key, @NonNull Function<? super K, ? extends V> mappingFunction) SortedMap.computeIfPresent(K key, @NonNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) SortedMap.grouped(int size) SortedMap.initOption()SortedMap.sliding(int size) SortedMap.sliding(int size, int step) SortedMap.tailOption()Methods in io.vavr.collection with parameters of type SortedMap