Package | Description |
---|---|
io.vavr |
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples. |
io.vavr.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
static <K extends Comparable<? super K>,V> |
API.SortedMap()
Alias for
TreeMap.empty() |
static <K,V> SortedMap<K,V> |
API.SortedMap(Comparator<? super K> keyComparator)
Alias for
TreeMap.empty(Comparator) |
static <K,V> SortedMap<K,V> |
API.SortedMap(Comparator<? super K> keyComparator,
K key,
V value)
Alias for
TreeMap.of(Comparator, Object, Object) |
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 extends Comparable<? super K>,V> |
API.SortedMap(K k1,
V v1)
Alias for
TreeMap.of(Comparable, Object) |
static <K extends Comparable<? super K>,V> |
API.SortedMap(K k1,
V v1,
K k2,
V v2)
|
static <K extends Comparable<? super K>,V> |
API.SortedMap(K k1,
V v1,
K k2,
V v2,
K k3,
V v3)
|
static <K extends Comparable<? super 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> |
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> |
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> |
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> |
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> |
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> |
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)
|
static <K extends Comparable<? super K>,V> |
API.SortedMap(Map<? extends K,? extends V> map)
Deprecated.
Will be removed in a future version.
|
static <K extends Comparable<? super K>,V> |
API.SortedMap(Tuple2<? extends K,? extends V>... entries)
Deprecated.
Will be removed in a future version.
|
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 a
Map . |
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 a
Map . |
default <K extends Comparable<? super K>,V> |
Value.toSortedMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper)
Converts this to a
Map . |
default <K extends Comparable<? super K>,V> |
Value.toSortedMap(Function<? super T,? extends Tuple2<? extends K,? extends V>> f)
Converts this to a
Map . |
Modifier and Type | Class and Description |
---|---|
class |
TreeMap<K,V>
SortedMap implementation, backed by a Red/Black Tree.
|
Modifier and Type | Method and Description |
---|---|
<K2,V2> SortedMap<K2,V2> |
SortedMap.bimap(Comparator<? super K2> keyComparator,
Function<? super K,? extends K2> keyMapper,
Function<? super V,? extends V2> valueMapper)
Same as
bimap(Function, Function) , using a specific comparator for keys of the codomain of the given
keyMapper . |
<K2,V2> SortedMap<K2,V2> |
SortedMap.bimap(Function<? super K,? extends K2> keyMapper,
Function<? super V,? extends V2> valueMapper) |
SortedMap<K,V> |
SortedMap.distinct() |
SortedMap<K,V> |
SortedMap.distinctBy(Comparator<? super Tuple2<K,V>> comparator) |
<U> SortedMap<K,V> |
SortedMap.distinctBy(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(Predicate<? super Tuple2<K,V>> predicate) |
SortedMap<K,V> |
SortedMap.dropWhile(Predicate<? super Tuple2<K,V>> predicate) |
SortedMap<K,V> |
SortedMap.filter(BiPredicate<? super K,? super V> predicate) |
SortedMap<K,V> |
SortedMap.filter(Predicate<? super Tuple2<K,V>> predicate) |
SortedMap<K,V> |
SortedMap.filterKeys(Predicate<? super K> predicate) |
SortedMap<K,V> |
SortedMap.filterValues(Predicate<? super V> predicate) |
<K2,V2> SortedMap<K2,V2> |
SortedMap.flatMap(BiFunction<? super K,? super V,? extends Iterable<Tuple2<K2,V2>>> mapper) |
<K2,V2> SortedMap<K2,V2> |
SortedMap.flatMap(Comparator<? super K2> keyComparator,
BiFunction<? super K,? super V,? extends Iterable<Tuple2<K2,V2>>> mapper)
Same as
flatMap(BiFunction) but using a specific comparator for values of the codomain of the given
mapper . |
SortedMap<K,V> |
SortedMap.init() |
<K2,V2> SortedMap<K2,V2> |
SortedMap.map(BiFunction<? super K,? super V,Tuple2<K2,V2>> mapper) |
<K2,V2> SortedMap<K2,V2> |
SortedMap.map(Comparator<? super K2> keyComparator,
BiFunction<? super K,? super V,Tuple2<K2,V2>> mapper)
Same as
map(BiFunction) , using a specific comparator for keys of the codomain of the given
mapper . |
<K2> SortedMap<K2,V> |
SortedMap.mapKeys(Function<? super K,? extends K2> keyMapper) |
<K2> SortedMap<K2,V> |
SortedMap.mapKeys(Function<? super K,? extends K2> keyMapper,
BiFunction<? super V,? super V,? extends V> valueMerge) |
<V2> SortedMap<K,V2> |
SortedMap.mapValues(Function<? super V,? extends V2> valueMapper) |
SortedMap<K,V> |
SortedMap.merge(Map<? extends K,? extends V> that) |
<U extends V> |
SortedMap.merge(Map<? extends K,U> that,
BiFunction<? super V,? super U,? extends V> collisionResolution) |
static <K,V> SortedMap<K,V> |
SortedMap.narrow(SortedMap<? extends K,? extends V> sortedMap)
Narrows a widened
SortedMap<? extends K, ? extends V> to SortedMap<K, V>
by performing a type-safe cast. |
SortedMap<K,V> |
SortedMap.orElse(Iterable<? extends Tuple2<K,V>> other) |
SortedMap<K,V> |
SortedMap.orElse(Supplier<? extends Iterable<? extends Tuple2<K,V>>> supplier) |
SortedMap<K,V> |
SortedMap.peek(Consumer<? super Tuple2<K,V>> action) |
<U extends V> |
SortedMap.put(K key,
U value,
BiFunction<? super V,? super U,? extends V> merge) |
SortedMap<K,V> |
SortedMap.put(K key,
V value) |
SortedMap<K,V> |
SortedMap.put(Tuple2<? extends K,? extends V> entry) |
<U extends V> |
SortedMap.put(Tuple2<? extends K,U> entry,
BiFunction<? super V,? super U,? extends V> merge) |
SortedMap<K,V> |
SortedMap.reject(BiPredicate<? super K,? super V> predicate) |
SortedMap<K,V> |
SortedMap.reject(Predicate<? super Tuple2<K,V>> predicate) |
SortedMap<K,V> |
SortedMap.rejectKeys(Predicate<? super K> predicate) |
SortedMap<K,V> |
SortedMap.rejectValues(Predicate<? super V> predicate) |
SortedMap<K,V> |
SortedMap.remove(K key) |
SortedMap<K,V> |
SortedMap.removeAll(BiPredicate<? super K,? super V> predicate)
Deprecated.
|
SortedMap<K,V> |
SortedMap.removeAll(Iterable<? extends K> keys) |
SortedMap<K,V> |
SortedMap.removeKeys(Predicate<? super K> predicate)
Deprecated.
|
SortedMap<K,V> |
SortedMap.removeValues(Predicate<? super V> predicate)
Deprecated.
|
SortedMap<K,V> |
SortedMap.replace(K key,
V oldValue,
V newValue) |
SortedMap<K,V> |
SortedMap.replace(Tuple2<K,V> currentElement,
Tuple2<K,V> newElement) |
SortedMap<K,V> |
SortedMap.replaceAll(BiFunction<? super K,? super V,? extends V> function) |
SortedMap<K,V> |
SortedMap.replaceAll(Tuple2<K,V> currentElement,
Tuple2<K,V> newElement) |
SortedMap<K,V> |
SortedMap.replaceValue(K key,
V value) |
SortedMap<K,V> |
SortedMap.retainAll(Iterable<? extends Tuple2<K,V>> elements) |
SortedMap<K,V> |
SortedMap.scan(Tuple2<K,V> zero,
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(Predicate<? super Tuple2<K,V>> predicate) |
SortedMap<K,V> |
SortedMap.takeWhile(Predicate<? super Tuple2<K,V>> predicate) |
Modifier and Type | Method and Description |
---|---|
Tuple2<V,? extends SortedMap<K,V>> |
SortedMap.computeIfAbsent(K key,
Function<? super K,? extends V> mappingFunction) |
Tuple2<Option<V>,? extends SortedMap<K,V>> |
SortedMap.computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
<C> Map<C,? extends SortedMap<K,V>> |
SortedMap.groupBy(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(Predicate<? super Tuple2<K,V>> predicate) |
Tuple2<? extends SortedMap<K,V>,? extends SortedMap<K,V>> |
SortedMap.partition(Predicate<? super Tuple2<K,V>> predicate) |
Iterator<? extends SortedMap<K,V>> |
SortedMap.slideBy(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(Predicate<? super Tuple2<K,V>> predicate) |
Tuple2<? extends SortedMap<K,V>,? extends SortedMap<K,V>> |
SortedMap.span(Predicate<? super Tuple2<K,V>> predicate) |
Option<? extends SortedMap<K,V>> |
SortedMap.tailOption() |
Modifier and Type | Method and Description |
---|---|
static <K,V> SortedMap<K,V> |
SortedMap.narrow(SortedMap<? extends K,? extends V> sortedMap)
Narrows a widened
SortedMap<? extends K, ? extends V> to SortedMap<K, V>
by performing a type-safe cast. |
Copyright © 2019. All Rights Reserved.