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
(Comparator<? super K> keyComparator) Alias forTreeMap.empty(Comparator)
static <K,
V> SortedMap <K, V> API.SortedMap
(Comparator<? super K> keyComparator, Tuple2<? extends K, ? extends V>... entries) Deprecated.Will be removed in a future version.static <K,
V> SortedMap <K, V> API.SortedMap
(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
(Comparator<? super K> comparator, Function<? super T, ? extends Tuple2<? extends K, ? extends V>> f) Converts this to aMap
.default <K,
V> SortedMap <K, V> Value.toSortedMap
(Comparator<? super K> comparator, Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper) Converts this to aMap
.default <K extends Comparable<? super K>,
V>
SortedMap<K, V> Value.toSortedMap
(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
(Function<? super T, ? extends K> keyMapper, 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 class
TreeMap<K,
V> SortedMap implementation, backed by a Red/Black Tree.Methods in io.vavr.collection that return SortedMapModifier and TypeMethodDescription<K2,
V2> SortedMap <K2, V2> SortedMap.bimap
(Comparator<? super K2> keyComparator, 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
(Function<? super K, ? extends K2> keyMapper, Function<? super V, ? extends V2> valueMapper) SortedMap.distinct()
SortedMap.distinctBy
(Comparator<? super Tuple2<K, V>> comparator) SortedMap.distinctBy
(Function<? super Tuple2<K, V>, ? extends U> keyExtractor) SortedMap.drop
(int n) SortedMap.dropRight
(int n) SortedMap.filter
(BiPredicate<? super K, ? super V> predicate) SortedMap.filterKeys
(Predicate<? super K> predicate) SortedMap.filterValues
(Predicate<? super V> predicate) <K2,
V2> SortedMap <K2, V2> SortedMap.flatMap
(Comparator<? super K2> keyComparator, 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.init()
<K2,
V2> SortedMap <K2, V2> SortedMap.map
(Comparator<? super K2> keyComparator, 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
(BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) SortedMap.mapKeys
(Function<? super K, ? extends K2> keyMapper, BiFunction<? super V, ? super V, ? extends V> valueMerge) SortedMap.merge
(Map<? extends K, U> that, 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
(K key, U value, BiFunction<? super V, ? super U, ? extends V> merge) SortedMap.reject
(BiPredicate<? super K, ? super V> predicate) SortedMap.rejectKeys
(Predicate<? super K> predicate) SortedMap.rejectValues
(Predicate<? super V> predicate) SortedMap.removeAll
(BiPredicate<? super K, ? super V> predicate) Deprecated.SortedMap.removeKeys
(Predicate<? super K> predicate) Deprecated.SortedMap.removeValues
(Predicate<? super V> predicate) Deprecated.SortedMap.replaceAll
(BiFunction<? super K, ? super V, ? extends V> function) SortedMap.replaceValue
(K key, V value) SortedMap.scan
(Tuple2<K, V> zero, 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, Function<? super K, ? extends V> mappingFunction) SortedMap.computeIfPresent
(K key, 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