Package | Description |
---|---|
javaslang.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) |
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 . |
<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) |
<W> LinkedHashMap<K,W> |
LinkedHashMap.mapValues(Function<? super V,? extends W> mapper) |
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(Object... pairs)
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 <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.put(K key,
V value) |
LinkedHashMap<K,V> |
LinkedHashMap.remove(K key) |
LinkedHashMap<K,V> |
LinkedHashMap.removeAll(Iterable<? extends K> keys) |
LinkedHashMap<K,V> |
LinkedHashMap.retainAll(Iterable<? extends Tuple2<K,V>> elements) |
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() |
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 . |
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 © 2016. All Rights Reserved.