Package | Description |
---|---|
io.vavr.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
protected <K2,V2> HashMultimap<K2,V2> |
HashMultimap.createFromMap(Map<K2,Traversable<V2>> back) |
<K,V2 extends V> |
HashMultimap.Builder.empty()
Returns the empty
HashMultimap . |
protected <K2,V2> HashMultimap<K2,V2> |
HashMultimap.emptyInstance() |
<K,V2 extends V> |
HashMultimap.Builder.fill(int n,
Supplier<? extends Tuple2<? extends K,? extends V2>> s)
Returns a HashMultimap containing
n values supplied by a given Supplier s . |
<K,V2 extends V> |
HashMultimap.Builder.fill(int n,
Tuple2<? extends K,? extends V2> element)
Returns a HashMultimap containing
n times the given element |
static <K,V> HashMultimap<K,V> |
HashMultimap.narrow(HashMultimap<? extends K,? extends V> map)
Narrows a widened
HashMultimap<? extends K, ? extends V> to HashMultimap<K, V>
by performing a type safe-cast. |
<K,V2 extends V> |
HashMultimap.Builder.of(K key,
V2 value)
Creates a HashMultimap of the given key-value pair.
|
<K,V2 extends V> |
HashMultimap.Builder.of(K k1,
V2 v1,
K k2,
V2 v2)
Creates a HashMultimap of the given list of key-value pairs.
|
<K,V2 extends V> |
HashMultimap.Builder.of(K k1,
V2 v1,
K k2,
V2 v2,
K k3,
V2 v3)
Creates a HashMultimap of the given list of key-value pairs.
|
<K,V2 extends V> |
HashMultimap.Builder.of(K k1,
V2 v1,
K k2,
V2 v2,
K k3,
V2 v3,
K k4,
V2 v4)
Creates a HashMultimap of the given list of key-value pairs.
|
<K,V2 extends V> |
HashMultimap.Builder.of(K k1,
V2 v1,
K k2,
V2 v2,
K k3,
V2 v3,
K k4,
V2 v4,
K k5,
V2 v5)
Creates a HashMultimap of the given list of key-value pairs.
|
<K,V2 extends V> |
HashMultimap.Builder.of(K k1,
V2 v1,
K k2,
V2 v2,
K k3,
V2 v3,
K k4,
V2 v4,
K k5,
V2 v5,
K k6,
V2 v6)
Creates a HashMultimap of the given list of key-value pairs.
|
<K,V2 extends V> |
HashMultimap.Builder.of(K k1,
V2 v1,
K k2,
V2 v2,
K k3,
V2 v3,
K k4,
V2 v4,
K k5,
V2 v5,
K k6,
V2 v6,
K k7,
V2 v7)
Creates a HashMultimap of the given list of key-value pairs.
|
<K,V2 extends V> |
HashMultimap.Builder.of(K k1,
V2 v1,
K k2,
V2 v2,
K k3,
V2 v3,
K k4,
V2 v4,
K k5,
V2 v5,
K k6,
V2 v6,
K k7,
V2 v7,
K k8,
V2 v8)
Creates a HashMultimap of the given list of key-value pairs.
|
<K,V2 extends V> |
HashMultimap.Builder.of(K k1,
V2 v1,
K k2,
V2 v2,
K k3,
V2 v3,
K k4,
V2 v4,
K k5,
V2 v5,
K k6,
V2 v6,
K k7,
V2 v7,
K k8,
V2 v8,
K k9,
V2 v9)
Creates a HashMultimap of the given list of key-value pairs.
|
<K,V2 extends V> |
HashMultimap.Builder.of(K k1,
V2 v1,
K k2,
V2 v2,
K k3,
V2 v3,
K k4,
V2 v4,
K k5,
V2 v5,
K k6,
V2 v6,
K k7,
V2 v7,
K k8,
V2 v8,
K k9,
V2 v9,
K k10,
V2 v10)
Creates a HashMultimap of the given list of key-value pairs.
|
<K,V2 extends V> |
HashMultimap.Builder.of(Tuple2<? extends K,? extends V2> entry)
Creates a HashMultimap of the given key-value pair.
|
<K,V2 extends V> |
HashMultimap.Builder.ofAll(Map<? extends K,? extends V2> map)
Returns a
HashMultimap , from a source java.util.Map. |
<T,K,V2 extends V> |
HashMultimap.Builder.ofAll(Stream<? extends T> stream,
Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V2> valueMapper)
Returns a
HashMultimap , from entries mapped from stream. |
<T,K,V2 extends V> |
HashMultimap.Builder.ofAll(Stream<? extends T> stream,
Function<? super T,Tuple2<? extends K,? extends V2>> entryMapper)
Returns a
HashMultimap , from entries mapped from stream. |
<K,V2 extends V> |
HashMultimap.Builder.ofEntries(Iterable<? extends Tuple2<? extends K,? extends V2>> entries)
Creates a
HashMultimap of the given entries. |
<K,V2 extends V> |
HashMultimap.Builder.ofEntries(Map.Entry<? extends K,? extends V2>... entries)
Creates a
HashMultimap of the given entries. |
<K,V2 extends V> |
HashMultimap.Builder.ofEntries(Tuple2<? extends K,? extends V2>... entries)
Creates a
HashMultimap of the given entries. |
<K,V2 extends V> |
HashMultimap.Builder.tabulate(int n,
Function<? super Integer,? extends Tuple2<? extends K,? extends V2>> f)
Returns a HashMultimap containing
n values of a given Function f
over a range of integer values from 0 to n - 1 . |
Modifier and Type | Method and Description |
---|---|
static <K,V> HashMultimap<K,V> |
HashMultimap.narrow(HashMultimap<? extends K,? extends V> map)
Narrows a widened
HashMultimap<? extends K, ? extends V> to HashMultimap<K, V>
by performing a type safe-cast. |
Copyright © 2020. All Rights Reserved.