Modifier and Type | Method and Description |
---|---|
static <K,E> ListMultimap<K,E> |
concat(Map<? extends K,? extends E> a,
Map<? extends K,? extends E> b) |
static <K,E,V extends Collection<E>,M extends Multimap<K,E,V>> |
concat(Map<? extends K,? extends E> a,
Map<? extends K,? extends E> b,
IntFunction<? extends M> multimapSupplier)
Deprecated.
|
static <K,E> ListMultimap<K,E> |
concat(Map<? extends K,? extends E> a,
Map<? extends K,? extends E> b,
Map<? extends K,? extends E> c) |
static <K,E,V extends Collection<E>,M extends Multimap<K,E,V>> |
concat(Map<? extends K,? extends E> a,
Map<? extends K,? extends E> b,
Map<? extends K,? extends E> c,
IntFunction<? extends M> multimapSupplier)
Deprecated.
|
ListMultimap<K,E> |
copy() |
<X extends Exception> |
filter(Try.BiPredicate<? super K,? super List<E>,X> filter) |
<X extends Exception> |
filterByKey(Try.Predicate<? super K,X> filter)
Filter by key.
|
<X extends Exception> |
filterByValue(Try.Predicate<? super List<E>,X> filter)
Filter by value.
|
static <K,E> ListMultimap<E,K> |
flatInvertFrom(Map<K,? extends Collection<? extends E>> map)
Flat invert from.
|
static <K,E,V extends Collection<K>,M extends Multimap<E,K,V>> |
flatInvertFrom(Map<K,? extends Collection<? extends E>> map,
IntFunction<? extends M> multimapSupplier)
Deprecated.
|
static <T,K,X extends Exception> |
from(Collection<? extends T> c,
Try.Function<? super T,? extends K,X> keyMapper) |
static <T,K,V extends Collection<T>,M extends Multimap<K,T,V>,X extends Exception> |
from(Collection<? extends T> c,
Try.Function<? super T,? extends K,X> keyMapper,
IntFunction<? extends M> multimapSupplier)
Deprecated.
|
static <T,K,E,X extends Exception,X2 extends Exception> |
from(Collection<? extends T> c,
Try.Function<? super T,? extends K,X> keyMapper,
Try.Function<? super T,? extends E,X2> valueExtractor) |
static <T,K,E,V extends Collection<E>,M extends Multimap<K,E,V>,X extends Exception,X2 extends Exception> |
from(Collection<? extends T> c,
Try.Function<? super T,? extends K,X> keyMapper,
Try.Function<? super T,? extends E,X2> valueExtractor,
IntFunction<? extends M> multimapSupplier)
Deprecated.
|
static <K,E> ListMultimap<K,E> |
from(Map<? extends K,? extends E> map) |
static <K,E,V extends Collection<E>,M extends Multimap<K,E,V>> |
from(Map<? extends K,? extends E> map,
IntFunction<? extends M> multimapSupplier)
Deprecated.
|
static <K,E> ListMultimap<K,E> |
fromm(Map<? extends K,? extends Collection<? extends E>> map) |
static <K,E,V extends Collection<E>,M extends Multimap<K,E,V>> |
fromm(Map<? extends K,? extends Collection<? extends E>> map,
IntFunction<? extends M> multimapSupplier)
Deprecated.
|
static <K,E> ListMultimap<E,K> |
invertFrom(Map<K,E> map) |
static <K,E,V extends Collection<K>,M extends Multimap<E,K,V>> |
invertFrom(Map<K,E> map,
IntFunction<? extends M> multimapSupplier)
Deprecated.
|
static <K,E,V extends Collection<E>> |
invertFrom(Multimap<K,E,V> map) |
static <K,E,V extends Collection<E>,VV extends Collection<K>,M extends Multimap<E,K,VV>> |
invertFrom(Multimap<K,E,V> multimap,
IntFunction<? extends M> multimapSupplier)
Deprecated.
|
static <K,E> ListMultimap<K,E> |
of(K k1,
E v1) |
static <K,E> ListMultimap<K,E> |
of(K k1,
E v1,
K k2,
E v2) |
static <K,E> ListMultimap<K,E> |
of(K k1,
E v1,
K k2,
E v2,
K k3,
E v3) |
static <K,E> ListMultimap<K,E> |
of(K k1,
E v1,
K k2,
E v2,
K k3,
E v3,
K k4,
E v4) |
static <K,E> ListMultimap<K,E> |
of(K k1,
E v1,
K k2,
E v2,
K k3,
E v3,
K k4,
E v4,
K k5,
E v5) |
static <K,E> ListMultimap<K,E> |
of(K k1,
E v1,
K k2,
E v2,
K k3,
E v3,
K k4,
E v4,
K k5,
E v5,
K k6,
E v6) |
static <K,E> ListMultimap<K,E> |
of(K k1,
E v1,
K k2,
E v2,
K k3,
E v3,
K k4,
E v4,
K k5,
E v5,
K k6,
E v6,
K k7,
E v7) |
ImmutableMap<K,ImmutableList<E>> |
toImmutableMap()
To immutable map.
|
ImmutableMap<K,ImmutableList<E>> |
toImmutableMap(IntFunction<? extends Map<K,ImmutableList<E>>> mapSupplier)
To immutable map.
|
static <K,E,V extends List<E>> |
wrap(Map<K,V> map) |
static <K,E,V extends Collection<E>> |
wrap(Map<K,V> map,
Supplier<? extends V> valueSupplier)
Deprecated.
|
static <K,E,V extends List<E>> |
wrapp(Map<K,V> map,
Supplier<? extends V> valueSupplier) |
accept, apply, clear, compute, computeIfAbsent, computeIfPresent, contains, containsAll, containsKey, containsValue, entrySet, entryStream, equals, flatForEach, flatForEachValue, flatValues, flatValues, forEach, forEachKey, forEachValue, get, getOrDefault, hashCode, isEmpty, keySet, merge, merge, put, putAll, putAll, putAll, putAllIfKeyAbsent, putIfAbsent, putIfKeyAbsent, remove, removeAll, removeAll, removeAll, removeAll, removeAllIf, removeAllIf, removeAllIf, removeAllIf, removeIf, removeIf, replace, replaceAll, replaceAll, replaceAllIf, replaceAllIf, replaceIf, replaceIf, size, stream, toMap, toMap, toMultiset, toString, totalCountOfValues, unwrap, values
public static <K,E> ListMultimap<K,E> of(K k1, E v1)
K
- the key typeE
- k1
- v1
- public static <K,E> ListMultimap<K,E> of(K k1, E v1, K k2, E v2)
K
- the key typeE
- k1
- v1
- k2
- v2
- public static <K,E> ListMultimap<K,E> of(K k1, E v1, K k2, E v2, K k3, E v3)
K
- the key typeE
- k1
- v1
- k2
- v2
- k3
- v3
- public static <K,E> ListMultimap<K,E> of(K k1, E v1, K k2, E v2, K k3, E v3, K k4, E v4)
K
- the key typeE
- k1
- v1
- k2
- v2
- k3
- v3
- k4
- v4
- public static <K,E> ListMultimap<K,E> of(K k1, E v1, K k2, E v2, K k3, E v3, K k4, E v4, K k5, E v5)
K
- the key typeE
- k1
- v1
- k2
- v2
- k3
- v3
- k4
- v4
- k5
- v5
- public static <K,E> ListMultimap<K,E> of(K k1, E v1, K k2, E v2, K k3, E v3, K k4, E v4, K k5, E v5, K k6, E v6)
K
- the key typeE
- k1
- v1
- k2
- v2
- k3
- v3
- k4
- v4
- k5
- v5
- k6
- v6
- public static <K,E> ListMultimap<K,E> of(K k1, E v1, K k2, E v2, K k3, E v3, K k4, E v4, K k5, E v5, K k6, E v6, K k7, E v7)
K
- the key typeE
- k1
- v1
- k2
- v2
- k3
- v3
- k4
- v4
- k5
- v5
- k6
- v6
- k7
- v7
- public static <K,E> ListMultimap<K,E> from(Map<? extends K,? extends E> map)
K
- the key typeE
- map
- public static <K,E> ListMultimap<K,E> fromm(Map<? extends K,? extends Collection<? extends E>> map)
K
- the key typeE
- map
- public static <T,K,X extends Exception> ListMultimap<K,T> from(Collection<? extends T> c, Try.Function<? super T,? extends K,X> keyMapper) throws X extends Exception
T
- K
- the key typeX
- c
- keyMapper
- X
- the xX extends Exception
public static <T,K,E,X extends Exception,X2 extends Exception> ListMultimap<K,E> from(Collection<? extends T> c, Try.Function<? super T,? extends K,X> keyMapper, Try.Function<? super T,? extends E,X2> valueExtractor) throws X extends Exception, X2 extends Exception
T
- K
- the key typeE
- X
- X2
- c
- keyMapper
- valueExtractor
- X
- the xX2
- the x2X extends Exception
public static <K,E> ListMultimap<E,K> invertFrom(Map<K,E> map)
K
- the key typeE
- map
- Multimap#invertFrom(Map, com.landawn.abacus.util.function.Supplier)
public static <K,E> ListMultimap<E,K> flatInvertFrom(Map<K,? extends Collection<? extends E>> map)
K
- the key typeE
- map
- Multimap#flatInvertFrom(Map, com.landawn.abacus.util.function.Supplier)
public static <K,E,V extends Collection<E>> ListMultimap<E,K> invertFrom(Multimap<K,E,V> map)
K
- the key typeE
- V
- the value typemap
- public static <K,E> ListMultimap<K,E> concat(Map<? extends K,? extends E> a, Map<? extends K,? extends E> b)
K
- the key typeE
- a
- b
- public static <K,E> ListMultimap<K,E> concat(Map<? extends K,? extends E> a, Map<? extends K,? extends E> b, Map<? extends K,? extends E> c)
K
- the key typeE
- a
- b
- c
- public static <K,E,V extends List<E>> ListMultimap<K,E> wrap(Map<K,V> map)
K
- the key typeE
- V
- the value typemap
- public static <K,E,V extends List<E>> ListMultimap<K,E> wrapp(Map<K,V> map, Supplier<? extends V> valueSupplier)
K
- the key typeE
- V
- the value typemap
- valueSupplier
- @Deprecated public static <K,E,V extends Collection<E>,M extends Multimap<K,E,V>> M from(Map<? extends K,? extends E> map, IntFunction<? extends M> multimapSupplier)
K
- the key typeE
- V
- the value typeM
- map
- multimapSupplier
- @Deprecated public static <K,E,V extends Collection<E>,M extends Multimap<K,E,V>> M fromm(Map<? extends K,? extends Collection<? extends E>> map, IntFunction<? extends M> multimapSupplier)
K
- the key typeE
- V
- the value typeM
- map
- multimapSupplier
- @Deprecated public static <T,K,V extends Collection<T>,M extends Multimap<K,T,V>,X extends Exception> M from(Collection<? extends T> c, Try.Function<? super T,? extends K,X> keyMapper, IntFunction<? extends M> multimapSupplier) throws X extends Exception
T
- K
- the key typeV
- the value typeM
- X
- c
- keyMapper
- multimapSupplier
- X
- the xX extends Exception
@Deprecated public static <T,K,E,V extends Collection<E>,M extends Multimap<K,E,V>,X extends Exception,X2 extends Exception> M from(Collection<? extends T> c, Try.Function<? super T,? extends K,X> keyMapper, Try.Function<? super T,? extends E,X2> valueExtractor, IntFunction<? extends M> multimapSupplier) throws X extends Exception, X2 extends Exception
T
- K
- the key typeE
- V
- the value typeM
- X
- X2
- c
- keyMapper
- valueExtractor
- multimapSupplier
- X
- the xX2
- the x2X extends Exception
@Deprecated public static <K,E,V extends Collection<K>,M extends Multimap<E,K,V>> M invertFrom(Map<K,E> map, IntFunction<? extends M> multimapSupplier)
K
- the key typeE
- V
- the value typeM
- map
- multimapSupplier
- @Deprecated public static <K,E,V extends Collection<K>,M extends Multimap<E,K,V>> M flatInvertFrom(Map<K,? extends Collection<? extends E>> map, IntFunction<? extends M> multimapSupplier)
K
- the key typeE
- V
- the value typeM
- map
- multimapSupplier
- @Deprecated public static <K,E,V extends Collection<E>,VV extends Collection<K>,M extends Multimap<E,K,VV>> M invertFrom(Multimap<K,E,V> multimap, IntFunction<? extends M> multimapSupplier)
K
- the key typeE
- V
- the value typeVV
- M
- multimap
- multimapSupplier
- @Deprecated public static <K,E,V extends Collection<E>,M extends Multimap<K,E,V>> M concat(Map<? extends K,? extends E> a, Map<? extends K,? extends E> b, IntFunction<? extends M> multimapSupplier)
K
- the key typeE
- V
- the value typeM
- a
- b
- multimapSupplier
- @Deprecated public static <K,E,V extends Collection<E>,M extends Multimap<K,E,V>> M concat(Map<? extends K,? extends E> a, Map<? extends K,? extends E> b, Map<? extends K,? extends E> c, IntFunction<? extends M> multimapSupplier)
K
- the key typeE
- V
- the value typeM
- a
- b
- c
- multimapSupplier
- @Deprecated public static <K,E,V extends Collection<E>> Multimap<K,E,V> wrap(Map<K,V> map, Supplier<? extends V> valueSupplier)
K
- the key typeE
- V
- the value typemap
- valueSupplier
- public <X extends Exception> ListMultimap<K,E> filterByKey(Try.Predicate<? super K,X> filter) throws X extends Exception
public <X extends Exception> ListMultimap<K,E> filterByValue(Try.Predicate<? super List<E>,X> filter) throws X extends Exception
public <X extends Exception> ListMultimap<K,E> filter(Try.BiPredicate<? super K,? super List<E>,X> filter) throws X extends Exception
public ImmutableMap<K,ImmutableList<E>> toImmutableMap()
public ImmutableMap<K,ImmutableList<E>> toImmutableMap(IntFunction<? extends Map<K,ImmutableList<E>>> mapSupplier)
mapSupplier
- Copyright © 2019. All rights reserved.