Multimap.
See the Guava User Guide article on Multimaps.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Multimaps.
A skeleton implementation of |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| pack-priv abstract static class | Multimaps.
A skeleton implementation of |
| pack-priv static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <K extends @Nullable Object, V extends @Nullable Object> Map | asMap(ListMultimap<K, V> multimap)
Returns |
| public static <K extends @Nullable Object, V extends @Nullable Object> Map | asMap(SetMultimap<K, V> multimap)
Returns |
| public static <K extends @Nullable Object, V extends @Nullable Object> Map | asMap(SortedSetMultimap<K, V> multimap)
Returns |
| public static <K extends @Nullable Object, V extends @Nullable Object> Map | |
| pack-priv static boolean | |
| public static <K extends @Nullable Object, V extends @Nullable Object> Multimap | filterEntries(Multimap<K, V> unfiltered, Predicate<? super Map.
Returns a multimap containing the mappings in |
| public static <K extends @Nullable Object, V extends @Nullable Object> SetMultimap | filterEntries(SetMultimap<K, V> unfiltered, Predicate<? super Map.
Returns a multimap containing the mappings in |
| private static <K extends @Nullable Object, V extends @Nullable Object> Multimap | filterFiltered(FilteredMultimap<K, V> multimap, Predicate<? super Map.
Support removal operations when filtering a filtered multimap. |
| private static <K extends @Nullable Object, V extends @Nullable Object> SetMultimap | filterFiltered(FilteredSetMultimap<K, V> multimap, Predicate<? super Map.
Support removal operations when filtering a filtered multimap. |
| public static <K extends @Nullable Object, V extends @Nullable Object> Multimap | filterKeys(Multimap<K, V> unfiltered, final Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in |
| public static <K extends @Nullable Object, V extends @Nullable Object> SetMultimap | filterKeys(SetMultimap<K, V> unfiltered, final Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in |
| public static <K extends @Nullable Object, V extends @Nullable Object> ListMultimap | filterKeys(ListMultimap<K, V> unfiltered, final Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in |
| public static <K extends @Nullable Object, V extends @Nullable Object> Multimap | filterValues(Multimap<K, V> unfiltered, final Predicate<? super V> valuePredicate)
Returns a multimap containing the mappings in |
| public static <K extends @Nullable Object, V extends @Nullable Object> SetMultimap | filterValues(SetMultimap<K, V> unfiltered, final Predicate<? super V> valuePredicate)
Returns a multimap containing the mappings in |
| public static <T extends @Nullable Object, K extends @Nullable Object, V extends @Nullable Object, M extends Multimap | flatteningToMultimap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends Stream<? extends V>> valueFunction, Supplier<M> multimapSupplier)
Returns a |
| public static <K extends @Nullable Object, V extends @Nullable Object> SetMultimap | |
| public static <K, V> ImmutableListMultimap | Returns: ImmutableListMultimap mapping the result of evaluating the function keyFunction on each value in the input collection to that valuethe values to use when constructing the values, Function<? super V, K> ImmutableListMultimapthe function used to produce the key for each value keyFunction)Creates an index |
| public static <K, V> ImmutableListMultimap | Returns: ImmutableListMultimap mapping the result of evaluating the function keyFunction on each value in the input collection to that valuethe values to use when constructing the values, Function<? super V, K> ImmutableListMultimapthe function used to produce the key for each value keyFunction)Creates an index |
| public static <K extends @Nullable Object, V extends @Nullable Object, M extends Multimap | Returns: destany multimap source, M the multimap to copy into; usually empty dest)Copies each key-value mapping in |
| public static <K extends @Nullable Object, V extends @Nullable Object> ListMultimap | newListMultimap(Map<K, Collection<V>>
place to store the mapping from each key to its corresponding values map, final Supplier<? extends List<V>> supplier of new, empty lists that will each hold all values for a given key factory)Creates a new |
| public static <K extends @Nullable Object, V extends @Nullable Object> Multimap | newMultimap(Map<K, Collection<V>>
place to store the mapping from each key to its corresponding values map, final Supplier<? extends Collection<V>> supplier of new, empty collections that will each hold all values for a given
key factory)Creates a new |
| public static <K extends @Nullable Object, V extends @Nullable Object> SetMultimap | newSetMultimap(Map<K, Collection<V>>
place to store the mapping from each key to its corresponding values map, final Supplier<? extends Set<V>> supplier of new, empty sets that will each hold all values for a given key factory)Creates a new |
| public static <K extends @Nullable Object, V extends @Nullable Object> SortedSetMultimap | newSortedSetMultimap(Map<K, Collection<V>>
place to store the mapping from each key to its corresponding values map, final Supplier<? extends SortedSet<V>> supplier of new, empty sorted sets that will each hold all values for a given
key factory)Creates a new |
| public static <K extends @Nullable Object, V extends @Nullable Object> ListMultimap | Returns: a synchronized view of the specified multimapthe multimap to be wrapped multimap)Returns a synchronized (thread-safe) |
| public static <K extends @Nullable Object, V extends @Nullable Object> Multimap | Returns: a synchronized view of the specified multimapthe multimap to be wrapped in a synchronized view multimap)Returns a synchronized (thread-safe) multimap backed by the specified multimap. |
| public static <K extends @Nullable Object, V extends @Nullable Object> SetMultimap | Returns: a synchronized view of the specified multimapthe multimap to be wrapped multimap)Returns a synchronized (thread-safe) |
| public static <K extends @Nullable Object, V extends @Nullable Object> SortedSetMultimap | Returns: a synchronized view of the specified multimapthe multimap to be wrapped multimap)Returns a synchronized (thread-safe) |
| public static <T extends @Nullable Object, K extends @Nullable Object, V extends @Nullable Object, M extends Multimap | toMultimap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, Supplier<M> multimapSupplier)
Returns a |
| public static <K extends @Nullable Object, V1 extends @Nullable Object, V2 extends @Nullable Object> Multimap | transformEntries(Multimap<K, V1> fromMap, Maps.
Returns a view of a multimap whose values are derived from the original multimap's entries. |
| public static <K extends @Nullable Object, V1 extends @Nullable Object, V2 extends @Nullable Object> ListMultimap | transformEntries(ListMultimap<K, V1> fromMap, Maps.
Returns a view of a |
| public static <K extends @Nullable Object, V1 extends @Nullable Object, V2 extends @Nullable Object> Multimap | transformValues(Multimap<K, V1> fromMultimap, final Function<? super V1, V2> function)
Returns a view of a multimap where each value is transformed by a function. |
| public static <K extends @Nullable Object, V1 extends @Nullable Object, V2 extends @Nullable Object> ListMultimap | transformValues(ListMultimap<K, V1> fromMultimap, final Function<? super V1, V2> function)
Returns a view of a |
| private static <K extends @Nullable Object, V extends @Nullable Object> Collection | Returns: an unmodifiable view of the entriesthe entries for which to return an unmodifiable view entriesReturns an unmodifiable view of the specified collection of entries. |
| public static <K extends @Nullable Object, V extends @Nullable Object> ListMultimap | Returns: an unmodifiable view of the specified multimapthe multimap for which an unmodifiable view is to be returned delegate)Returns an unmodifiable view of the specified |
| public static <K, V> ListMultimap | unmodifiableListMultimap(ImmutableListMultimap<K, V> delegate)
Deprecated
no need to use this
Simply returns its argument.
|
| public static <K extends @Nullable Object, V extends @Nullable Object> Multimap | Returns: an unmodifiable view of the specified multimapthe multimap for which an unmodifiable view is to be returned delegate)Returns an unmodifiable view of the specified multimap. |
| public static <K, V> Multimap | unmodifiableMultimap(ImmutableMultimap<K, V> delegate)
Deprecated
no need to use this
Simply returns its argument.
|
| public static <K extends @Nullable Object, V extends @Nullable Object> SetMultimap | Returns: an unmodifiable view of the specified multimapthe multimap for which an unmodifiable view is to be returned delegate)Returns an unmodifiable view of the specified |
| public static <K, V> SetMultimap | unmodifiableSetMultimap(ImmutableSetMultimap<K, V> delegate)
Deprecated
no need to use this
Simply returns its argument.
|
| public static <K extends @Nullable Object, V extends @Nullable Object> SortedSetMultimap | Returns: an unmodifiable view of the specified multimapthe multimap for which an unmodifiable view is to be returned delegate)Returns an unmodifiable view of the specified |
| private static <V extends @Nullable Object> Collection | Returns: an unmodifiable view of the collectionthe collection for which to return an unmodifiable view collection)Returns an unmodifiable view of the specified collection, preserving the interface for
instances of |