| Modifier and Type | Method and Description |
|---|---|
static <K,E> SetMultimap<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> SetMultimap<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.
|
SetMultimap<K,E> |
copy() |
<X extends Exception> |
filter(Throwables.BiPredicate<? super K,? super Set<E>,X> filter) |
<X extends Exception> |
filterByKey(Throwables.Predicate<? super K,X> filter)
Filter by key.
|
<X extends Exception> |
filterByValue(Throwables.Predicate<? super Set<E>,X> filter)
Filter by value.
|
static <K,E> SetMultimap<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,
Throwables.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,
Throwables.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,
Throwables.Function<? super T,? extends K,X> keyMapper,
Throwables.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,
Throwables.Function<? super T,? extends K,X> keyMapper,
Throwables.Function<? super T,? extends E,X2> valueExtractor,
IntFunction<? extends M> multimapSupplier)
Deprecated.
|
static <K,E> SetMultimap<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> SetMultimap<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> SetMultimap<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> SetMultimap<K,E> |
of(K k1,
E v1) |
static <K,E> SetMultimap<K,E> |
of(K k1,
E v1,
K k2,
E v2) |
static <K,E> SetMultimap<K,E> |
of(K k1,
E v1,
K k2,
E v2,
K k3,
E v3) |
static <K,E> SetMultimap<K,E> |
of(K k1,
E v1,
K k2,
E v2,
K k3,
E v3,
K k4,
E v4) |
static <K,E> SetMultimap<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> SetMultimap<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> SetMultimap<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,ImmutableSet<E>> |
toImmutableMap()
To immutable map.
|
ImmutableMap<K,ImmutableSet<E>> |
toImmutableMap(IntFunction<? extends Map<K,ImmutableSet<E>>> mapSupplier)
To immutable map.
|
static <K,E,V extends Set<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 Set<E>> |
wrapp(Map<K,V> map,
Supplier<? extends V> valueSupplier) |
accept, apply, clear, compute, computeIfAbsent, computeIfPresent, contains, containsAll, containsKey, containsValue, entrySet, equals, flatForEach, flatForEachValue, flatValues, flatValues, forEach, forEachKey, forEachValue, get, getOrDefault, hashCode, inverse, 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, replaceAll, replaceAllIf, replaceAllIf, replaceAllIf, replaceAllIf, replaceIf, replaceIf, size, toMap, toMap, toMultiset, toString, totalCountOfValues, unwrap, valuespublic static <K,E> SetMultimap<K,E> of(K k1, E v1)
K - the key typeE - k1 - v1 - public static <K,E> SetMultimap<K,E> of(K k1, E v1, K k2, E v2)
K - the key typeE - k1 - v1 - k2 - v2 - public static <K,E> SetMultimap<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> SetMultimap<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> SetMultimap<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> SetMultimap<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> SetMultimap<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> SetMultimap<K,E> from(Map<? extends K,? extends E> map)
K - the key typeE - map - public static <K,E> SetMultimap<K,E> fromm(Map<? extends K,? extends Collection<? extends E>> map)
K - the key typeE - map - public static <T,K,X extends Exception> SetMultimap<K,T> from(Collection<? extends T> c, Throwables.Function<? super T,? extends K,X> keyMapper) throws X extends Exception
T - K - the key typeX - c - keyMapper - X - the xX extends Exceptionpublic static <T,K,E,X extends Exception,X2 extends Exception> SetMultimap<K,E> from(Collection<? extends T> c, Throwables.Function<? super T,? extends K,X> keyMapper, Throwables.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 Exceptionpublic static <K,E> SetMultimap<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> SetMultimap<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>> SetMultimap<E,K> invertFrom(Multimap<K,E,V> map)
K - the key typeE - V - the value typemap - public static <K,E> SetMultimap<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> SetMultimap<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 Set<E>> SetMultimap<K,E> wrap(Map<K,V> map)
K - the key typeE - V - the value typemap - public static <K,E,V extends Set<E>> SetMultimap<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) throws UnsupportedOperationException
K - the key typeE - V - the value typeM - map - multimapSupplier - UnsupportedOperationException@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) throws UnsupportedOperationException
K - the key typeE - V - the value typeM - map - multimapSupplier - UnsupportedOperationException@Deprecated public static <T,K,V extends Collection<T>,M extends Multimap<K,T,V>,X extends Exception> M from(Collection<? extends T> c, Throwables.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, Throwables.Function<? super T,? extends K,X> keyMapper, Throwables.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) throws UnsupportedOperationException
K - the key typeE - V - the value typeM - map - multimapSupplier - UnsupportedOperationException@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) throws UnsupportedOperationException
K - the key typeE - V - the value typeM - map - multimapSupplier - UnsupportedOperationException@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) throws UnsupportedOperationException
K - the key typeE - V - the value typeVV - M - multimap - multimapSupplier - UnsupportedOperationException@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) throws UnsupportedOperationException
K - the key typeE - V - the value typeM - a - b - multimapSupplier - UnsupportedOperationException@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) throws UnsupportedOperationException
K - the key typeE - V - the value typeM - a - b - c - multimapSupplier - UnsupportedOperationException@Deprecated public static <K,E,V extends Collection<E>> Multimap<K,E,V> wrap(Map<K,V> map, Supplier<? extends V> valueSupplier) throws UnsupportedOperationException
K - the key typeE - V - the value typemap - valueSupplier - UnsupportedOperationExceptionpublic <X extends Exception> SetMultimap<K,E> filterByKey(Throwables.Predicate<? super K,X> filter) throws X extends Exception
public <X extends Exception> SetMultimap<K,E> filterByValue(Throwables.Predicate<? super Set<E>,X> filter) throws X extends Exception
public <X extends Exception> SetMultimap<K,E> filter(Throwables.BiPredicate<? super K,? super Set<E>,X> filter) throws X extends Exception
public ImmutableMap<K,ImmutableSet<E>> toImmutableMap()
public ImmutableMap<K,ImmutableSet<E>> toImmutableMap(IntFunction<? extends Map<K,ImmutableSet<E>>> mapSupplier)
mapSupplier - Copyright © 2021. All rights reserved.