Uses of Interface
io.vavr.collection.SortedMap
-
Packages that use SortedMap Package Description io.vavr BesideAPIthe io.vavr package contains core types like (Checked)Functions and Tuples.io.vavr.collection Purely functional collections based on Traversable. -
-
Uses of SortedMap in io.vavr
Methods in io.vavr that return SortedMap Modifier and Type Method Description static <K extends java.lang.Comparable<? super K>,V>
SortedMap<K,V>API. SortedMap()Alias forTreeMap.empty()static <K extends java.lang.Comparable<? super K>,V>
SortedMap<K,V>API. SortedMap(Tuple2<? extends K,? extends V>... entries)Deprecated.Will be removed in a future version.static <K,V>
SortedMap<K,V>API. SortedMap(java.util.Comparator<? super K> keyComparator)Alias forTreeMap.empty(Comparator)static <K,V>
SortedMap<K,V>API. SortedMap(java.util.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(java.util.Comparator<? super K> keyComparator, K key, V value)Alias forTreeMap.of(Comparator, Object, Object)static <K extends java.lang.Comparable<? super K>,V>
SortedMap<K,V>API. SortedMap(java.util.Map<? extends K,? extends V> map)Deprecated.Will be removed in a future version.static <K extends java.lang.Comparable<? super K>,V>
SortedMap<K,V>API. SortedMap(K k1, V v1)Alias forTreeMap.of(Comparable, Object)static <K extends java.lang.Comparable<? super K>,V>
SortedMap<K,V>API. SortedMap(K k1, V v1, K k2, V v2)static <K extends java.lang.Comparable<? super K>,V>
SortedMap<K,V>API. SortedMap(K k1, V v1, K k2, V v2, K k3, V v3)static <K extends java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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(java.util.Comparator<? super K> comparator, java.util.function.Function<? super T,? extends Tuple2<? extends K,? extends V>> f)Converts this to aMap.default <K,V>
SortedMap<K,V>Value. toSortedMap(java.util.Comparator<? super K> comparator, java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)Converts this to aMap.default <K extends java.lang.Comparable<? super K>,V>
SortedMap<K,V>Value. toSortedMap(java.util.function.Function<? super T,? extends Tuple2<? extends K,? extends V>> f)Converts this to aMap.default <K extends java.lang.Comparable<? super K>,V>
SortedMap<K,V>Value. toSortedMap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)Converts this to aMap. -
Uses of SortedMap in io.vavr.collection
Classes in io.vavr.collection that implement SortedMap Modifier and Type Class Description classTreeMap<K,V>SortedMap implementation, backed by a Red/Black Tree.Methods in io.vavr.collection that return SortedMap Modifier and Type Method Description <K2,V2>
SortedMap<K2,V2>SortedMap. bimap(java.util.Comparator<? super K2> keyComparator, java.util.function.Function<? super K,? extends K2> keyMapper, java.util.function.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(java.util.function.Function<? super K,? extends K2> keyMapper, java.util.function.Function<? super V,? extends V2> valueMapper)SortedMap<K,V>SortedMap. distinct()SortedMap<K,V>SortedMap. distinctBy(java.util.Comparator<? super Tuple2<K,V>> comparator)<U> SortedMap<K,V>SortedMap. distinctBy(java.util.function.Function<? super Tuple2<K,V>,? extends U> keyExtractor)SortedMap<K,V>SortedMap. drop(int n)SortedMap<K,V>SortedMap. dropRight(int n)SortedMap<K,V>SortedMap. dropUntil(java.util.function.Predicate<? super Tuple2<K,V>> predicate)SortedMap<K,V>SortedMap. dropWhile(java.util.function.Predicate<? super Tuple2<K,V>> predicate)SortedMap<K,V>SortedMap. filter(java.util.function.BiPredicate<? super K,? super V> predicate)SortedMap<K,V>SortedMap. filter(java.util.function.Predicate<? super Tuple2<K,V>> predicate)SortedMap<K,V>SortedMap. filterKeys(java.util.function.Predicate<? super K> predicate)SortedMap<K,V>SortedMap. filterValues(java.util.function.Predicate<? super V> predicate)<K2,V2>
SortedMap<K2,V2>SortedMap. flatMap(java.util.Comparator<? super K2> keyComparator, java.util.function.BiFunction<? super K,? super V,? extends java.lang.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(java.util.function.BiFunction<? super K,? super V,? extends java.lang.Iterable<Tuple2<K2,V2>>> mapper)SortedMap<K,V>SortedMap. init()<K2,V2>
SortedMap<K2,V2>SortedMap. map(java.util.Comparator<? super K2> keyComparator, java.util.function.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(java.util.function.BiFunction<? super K,? super V,Tuple2<K2,V2>> mapper)<K2> SortedMap<K2,V>SortedMap. mapKeys(java.util.function.Function<? super K,? extends K2> keyMapper)<K2> SortedMap<K2,V>SortedMap. mapKeys(java.util.function.Function<? super K,? extends K2> keyMapper, java.util.function.BiFunction<? super V,? super V,? extends V> valueMerge)<V2> SortedMap<K,V2>SortedMap. mapValues(java.util.function.Function<? super V,? extends V2> valueMapper)SortedMap<K,V>SortedMap. merge(Map<? extends K,? extends V> that)<U extends V>
SortedMap<K,V>SortedMap. merge(Map<? extends K,U> that, java.util.function.BiFunction<? super V,? super U,? extends V> collisionResolution)static <K,V>
SortedMap<K,V>SortedMap. narrow(SortedMap<? extends K,? extends V> sortedMap)Narrows a widenedSortedMap<? extends K, ? extends V>toSortedMap<K, V>by performing a type-safe cast.SortedMap<K,V>SortedMap. orElse(java.lang.Iterable<? extends Tuple2<K,V>> other)SortedMap<K,V>SortedMap. orElse(java.util.function.Supplier<? extends java.lang.Iterable<? extends Tuple2<K,V>>> supplier)SortedMap<K,V>SortedMap. peek(java.util.function.Consumer<? super Tuple2<K,V>> action)SortedMap<K,V>SortedMap. put(Tuple2<? extends K,? extends V> entry)<U extends V>
SortedMap<K,V>SortedMap. put(Tuple2<? extends K,U> entry, java.util.function.BiFunction<? super V,? super U,? extends V> merge)<U extends V>
SortedMap<K,V>SortedMap. put(K key, U value, java.util.function.BiFunction<? super V,? super U,? extends V> merge)SortedMap<K,V>SortedMap. put(K key, V value)SortedMap<K,V>SortedMap. reject(java.util.function.BiPredicate<? super K,? super V> predicate)SortedMap<K,V>SortedMap. reject(java.util.function.Predicate<? super Tuple2<K,V>> predicate)SortedMap<K,V>SortedMap. rejectKeys(java.util.function.Predicate<? super K> predicate)SortedMap<K,V>SortedMap. rejectValues(java.util.function.Predicate<? super V> predicate)SortedMap<K,V>SortedMap. remove(K key)SortedMap<K,V>SortedMap. removeAll(java.lang.Iterable<? extends K> keys)SortedMap<K,V>SortedMap. removeAll(java.util.function.BiPredicate<? super K,? super V> predicate)Deprecated.SortedMap<K,V>SortedMap. removeKeys(java.util.function.Predicate<? super K> predicate)Deprecated.SortedMap<K,V>SortedMap. removeValues(java.util.function.Predicate<? super V> predicate)Deprecated.SortedMap<K,V>SortedMap. replace(Tuple2<K,V> currentElement, Tuple2<K,V> newElement)SortedMap<K,V>SortedMap. replace(K key, V oldValue, V newValue)SortedMap<K,V>SortedMap. replaceAll(Tuple2<K,V> currentElement, Tuple2<K,V> newElement)SortedMap<K,V>SortedMap. replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)SortedMap<K,V>SortedMap. replaceValue(K key, V value)SortedMap<K,V>SortedMap. retainAll(java.lang.Iterable<? extends Tuple2<K,V>> elements)SortedMap<K,V>SortedMap. scan(Tuple2<K,V> zero, java.util.function.BiFunction<? super Tuple2<K,V>,? super Tuple2<K,V>,? extends Tuple2<K,V>> operation)SortedMap<K,V>SortedMap. tail()SortedMap<K,V>SortedMap. take(int n)SortedMap<K,V>SortedMap. takeRight(int n)SortedMap<K,V>SortedMap. takeUntil(java.util.function.Predicate<? super Tuple2<K,V>> predicate)SortedMap<K,V>SortedMap. takeWhile(java.util.function.Predicate<? super Tuple2<K,V>> predicate)Methods in io.vavr.collection that return types with arguments of type SortedMap Modifier and Type Method Description Tuple2<V,? extends SortedMap<K,V>>SortedMap. computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)Tuple2<Option<V>,? extends SortedMap<K,V>>SortedMap. computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)<C> Map<C,? extends SortedMap<K,V>>SortedMap. groupBy(java.util.function.Function<? super Tuple2<K,V>,? extends C> classifier)Iterator<? extends SortedMap<K,V>>SortedMap. grouped(int size)Option<? extends SortedMap<K,V>>SortedMap. initOption()Tuple2<? extends SortedMap<K,V>,? extends SortedMap<K,V>>SortedMap. partition(java.util.function.Predicate<? super Tuple2<K,V>> predicate)Tuple2<? extends SortedMap<K,V>,? extends SortedMap<K,V>>SortedMap. partition(java.util.function.Predicate<? super Tuple2<K,V>> predicate)Iterator<? extends SortedMap<K,V>>SortedMap. slideBy(java.util.function.Function<? super Tuple2<K,V>,?> classifier)Iterator<? extends SortedMap<K,V>>SortedMap. sliding(int size)Iterator<? extends SortedMap<K,V>>SortedMap. sliding(int size, int step)Tuple2<? extends SortedMap<K,V>,? extends SortedMap<K,V>>SortedMap. span(java.util.function.Predicate<? super Tuple2<K,V>> predicate)Tuple2<? extends SortedMap<K,V>,? extends SortedMap<K,V>>SortedMap. span(java.util.function.Predicate<? super Tuple2<K,V>> predicate)Option<? extends SortedMap<K,V>>SortedMap. tailOption()Methods in io.vavr.collection with parameters of type SortedMap Modifier and Type Method Description static <K,V>
SortedMap<K,V>SortedMap. narrow(SortedMap<? extends K,? extends V> sortedMap)Narrows a widenedSortedMap<? extends K, ? extends V>toSortedMap<K, V>by performing a type-safe cast.
-