Package | Description |
---|---|
io.vavr.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
<K2,V2> LinkedHashMap<K2,V2> |
LinkedHashMap.bimap(Function<? super K,? extends K2> keyMapper,
Function<? super V,? extends V2> valueMapper) |
LinkedHashMap<K,V> |
LinkedHashMap.distinct() |
LinkedHashMap<K,V> |
LinkedHashMap.distinctBy(Comparator<? super Tuple2<K,V>> comparator) |
<U> LinkedHashMap<K,V> |
LinkedHashMap.distinctBy(Function<? super Tuple2<K,V>,? extends U> keyExtractor) |
LinkedHashMap<K,V> |
LinkedHashMap.drop(int n) |
LinkedHashMap<K,V> |
LinkedHashMap.dropRight(int n) |
LinkedHashMap<K,V> |
LinkedHashMap.dropUntil(Predicate<? super Tuple2<K,V>> predicate) |
LinkedHashMap<K,V> |
LinkedHashMap.dropWhile(Predicate<? super Tuple2<K,V>> predicate) |
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.empty() |
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.fill(int n,
Supplier<? extends Tuple2<? extends K,? extends V>> s)
Returns a LinkedHashMap containing
n values supplied by a given Supplier s . |
LinkedHashMap<K,V> |
LinkedHashMap.filter(BiPredicate<? super K,? super V> predicate) |
LinkedHashMap<K,V> |
LinkedHashMap.filter(Predicate<? super Tuple2<K,V>> predicate) |
LinkedHashMap<K,V> |
LinkedHashMap.filterKeys(Predicate<? super K> predicate) |
LinkedHashMap<K,V> |
LinkedHashMap.filterValues(Predicate<? super V> predicate) |
<K2,V2> LinkedHashMap<K2,V2> |
LinkedHashMap.flatMap(BiFunction<? super K,? super V,? extends Iterable<Tuple2<K2,V2>>> mapper) |
LinkedHashMap<K,V> |
LinkedHashMap.init() |
<K2,V2> LinkedHashMap<K2,V2> |
LinkedHashMap.map(BiFunction<? super K,? super V,Tuple2<K2,V2>> mapper) |
<K2> LinkedHashMap<K2,V> |
LinkedHashMap.mapKeys(Function<? super K,? extends K2> keyMapper) |
<K2> LinkedHashMap<K2,V> |
LinkedHashMap.mapKeys(Function<? super K,? extends K2> keyMapper,
BiFunction<? super V,? super V,? extends V> valueMerge) |
<W> LinkedHashMap<K,W> |
LinkedHashMap.mapValues(Function<? super V,? extends W> mapper) |
LinkedHashMap<K,V> |
LinkedHashMap.merge(Map<? extends K,? extends V> that) |
<U extends V> |
LinkedHashMap.merge(Map<? extends K,U> that,
BiFunction<? super V,? super U,? extends V> collisionResolution) |
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.narrow(LinkedHashMap<? extends K,? extends V> linkedHashMap)
Narrows a widened
LinkedHashMap<? extends K, ? extends V> to LinkedHashMap<K, V>
by performing a type-safe cast. |
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.of(K key,
V value)
Returns a singleton
LinkedHashMap , i.e. |
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.of(K k1,
V v1,
K k2,
V v2)
Creates a LinkedHashMap of the given list of key-value pairs.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3)
Creates a LinkedHashMap of the given list of key-value pairs.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4)
Creates a LinkedHashMap of the given list of key-value pairs.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5)
Creates a LinkedHashMap of the given list of key-value pairs.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.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 LinkedHashMap of the given list of key-value pairs.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.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 LinkedHashMap of the given list of key-value pairs.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.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 LinkedHashMap of the given list of key-value pairs.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.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 LinkedHashMap of the given list of key-value pairs.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.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 LinkedHashMap of the given list of key-value pairs.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.of(Tuple2<? extends K,? extends V> entry)
Returns a singleton
LinkedHashMap , i.e. |
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.ofAll(Map<? extends K,? extends V> map)
Returns a
LinkedHashMap , from a source java.util.Map. |
static <T,K,V> LinkedHashMap<K,V> |
LinkedHashMap.ofAll(Stream<? extends T> stream,
Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper)
Returns a
LinkedHashMap , from entries mapped from stream. |
static <T,K,V> LinkedHashMap<K,V> |
LinkedHashMap.ofAll(Stream<? extends T> stream,
Function<? super T,Tuple2<? extends K,? extends V>> entryMapper)
Returns a
LinkedHashMap , from entries mapped from stream. |
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.ofEntries(Iterable<? extends Tuple2<? extends K,? extends V>> entries)
Creates a LinkedHashMap of the given entries.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.ofEntries(Map.Entry<? extends K,? extends V>... entries)
Creates a LinkedHashMap of the given entries.
|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.ofEntries(Tuple2<? extends K,? extends V>... entries)
Creates a LinkedHashMap of the given entries.
|
LinkedHashMap<K,V> |
LinkedHashMap.orElse(Iterable<? extends Tuple2<K,V>> other) |
LinkedHashMap<K,V> |
LinkedHashMap.orElse(Supplier<? extends Iterable<? extends Tuple2<K,V>>> supplier) |
LinkedHashMap<K,V> |
LinkedHashMap.peek(Consumer<? super Tuple2<K,V>> action) |
<U extends V> |
LinkedHashMap.put(K key,
U value,
BiFunction<? super V,? super U,? extends V> merge) |
LinkedHashMap<K,V> |
LinkedHashMap.put(K key,
V value) |
LinkedHashMap<K,V> |
LinkedHashMap.put(Tuple2<? extends K,? extends V> entry) |
<U extends V> |
LinkedHashMap.put(Tuple2<? extends K,U> entry,
BiFunction<? super V,? super U,? extends V> merge) |
LinkedHashMap<K,V> |
LinkedHashMap.remove(K key) |
LinkedHashMap<K,V> |
LinkedHashMap.removeAll(BiPredicate<? super K,? super V> predicate) |
LinkedHashMap<K,V> |
LinkedHashMap.removeAll(Iterable<? extends K> keys) |
LinkedHashMap<K,V> |
LinkedHashMap.removeKeys(Predicate<? super K> predicate) |
LinkedHashMap<K,V> |
LinkedHashMap.removeValues(Predicate<? super V> predicate) |
LinkedHashMap<K,V> |
LinkedHashMap.replace(K key,
V oldValue,
V newValue) |
LinkedHashMap<K,V> |
LinkedHashMap.replace(Tuple2<K,V> currentElement,
Tuple2<K,V> newElement) |
LinkedHashMap<K,V> |
LinkedHashMap.replaceAll(BiFunction<? super K,? super V,? extends V> function) |
LinkedHashMap<K,V> |
LinkedHashMap.replaceAll(Tuple2<K,V> currentElement,
Tuple2<K,V> newElement) |
LinkedHashMap<K,V> |
LinkedHashMap.replaceValue(K key,
V value) |
LinkedHashMap<K,V> |
LinkedHashMap.retainAll(Iterable<? extends Tuple2<K,V>> elements) |
LinkedHashMap<K,V> |
LinkedHashMap.scan(Tuple2<K,V> zero,
BiFunction<? super Tuple2<K,V>,? super Tuple2<K,V>,? extends Tuple2<K,V>> operation) |
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.tabulate(int n,
Function<? super Integer,? extends Tuple2<? extends K,? extends V>> f)
Returns a LinkedHashMap containing
n values of a given Function f
over a range of integer values from 0 to n - 1 . |
LinkedHashMap<K,V> |
LinkedHashMap.tail() |
LinkedHashMap<K,V> |
LinkedHashMap.take(int n) |
LinkedHashMap<K,V> |
LinkedHashMap.takeRight(int n) |
LinkedHashMap<K,V> |
LinkedHashMap.takeUntil(Predicate<? super Tuple2<K,V>> predicate) |
LinkedHashMap<K,V> |
LinkedHashMap.takeWhile(Predicate<? super Tuple2<K,V>> predicate) |
Modifier and Type | Method and Description |
---|---|
static <K,V> Collector<Tuple2<K,V>,ArrayList<Tuple2<K,V>>,LinkedHashMap<K,V>> |
LinkedHashMap.collector()
Returns a
Collector which may be used in conjunction with
Stream.collect(java.util.stream.Collector) to obtain a LinkedHashMap . |
Tuple2<V,LinkedHashMap<K,V>> |
LinkedHashMap.computeIfAbsent(K key,
Function<? super K,? extends V> mappingFunction) |
Tuple2<Option<V>,LinkedHashMap<K,V>> |
LinkedHashMap.computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
<C> Map<C,LinkedHashMap<K,V>> |
LinkedHashMap.groupBy(Function<? super Tuple2<K,V>,? extends C> classifier) |
Iterator<LinkedHashMap<K,V>> |
LinkedHashMap.grouped(int size) |
Option<LinkedHashMap<K,V>> |
LinkedHashMap.initOption() |
Tuple2<LinkedHashMap<K,V>,LinkedHashMap<K,V>> |
LinkedHashMap.partition(Predicate<? super Tuple2<K,V>> predicate) |
Tuple2<LinkedHashMap<K,V>,LinkedHashMap<K,V>> |
LinkedHashMap.partition(Predicate<? super Tuple2<K,V>> predicate) |
Iterator<LinkedHashMap<K,V>> |
LinkedHashMap.slideBy(Function<? super Tuple2<K,V>,?> classifier) |
Iterator<LinkedHashMap<K,V>> |
LinkedHashMap.sliding(int size) |
Iterator<LinkedHashMap<K,V>> |
LinkedHashMap.sliding(int size,
int step) |
Tuple2<LinkedHashMap<K,V>,LinkedHashMap<K,V>> |
LinkedHashMap.span(Predicate<? super Tuple2<K,V>> predicate) |
Tuple2<LinkedHashMap<K,V>,LinkedHashMap<K,V>> |
LinkedHashMap.span(Predicate<? super Tuple2<K,V>> predicate) |
Option<LinkedHashMap<K,V>> |
LinkedHashMap.tailOption() |
Modifier and Type | Method and Description |
---|---|
static <K,V> LinkedHashMap<K,V> |
LinkedHashMap.narrow(LinkedHashMap<? extends K,? extends V> linkedHashMap)
Narrows a widened
LinkedHashMap<? extends K, ? extends V> to LinkedHashMap<K, V>
by performing a type-safe cast. |
Copyright © 2017. All Rights Reserved.