public abstract class MultimapLib extends Object
Constructor and Description |
---|
MultimapLib() |
Modifier and Type | Method and Description |
---|---|
static <Item> com.google.common.collect.SetMultimap<Item,Item> |
filterKeysAndValues(com.google.common.collect.SetMultimap<Item,Item> key__values,
com.google.common.base.Predicate<Item> predicate)
Filtering the entries in a multimap containing keys and values of the same type.
|
static <Item> com.google.common.collect.ImmutableSet<Item> |
keysAndValues(com.google.common.collect.Multimap<Item,Item> key__values)
Collecting all of the keys and values in a multimap with keys and values of the same type.
|
static <Item> com.google.common.collect.ImmutableSetMultimap<Item,Item> |
of(Item... entries)
Creating a multimap with keys and values of the same type.
|
@SafeVarargs public static <Item> com.google.common.collect.ImmutableSetMultimap<Item,Item> of(Item... entries)
entries
- Alternating keys and values.public static <Item> com.google.common.collect.ImmutableSet<Item> keysAndValues(com.google.common.collect.Multimap<Item,Item> key__values)
key__values
- The multimap.public static <Item> com.google.common.collect.SetMultimap<Item,Item> filterKeysAndValues(com.google.common.collect.SetMultimap<Item,Item> key__values, com.google.common.base.Predicate<Item> predicate)
key__values
- The multimap.keep
- The predicate for filtering the keys and values.Copyright © 2014. All rights reserved.