| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MultiReaderHashBagMultimap | back to summary |
|---|---|
| public MultiReaderHashBagMultimap() | |
| MultiReaderHashBagMultimap | back to summary |
|---|---|
| public MultiReaderHashBagMultimap(Multimap<? extends K, ? extends V> multimap) | |
| MultiReaderHashBagMultimap | back to summary |
|---|---|
| public MultiReaderHashBagMultimap(Pair<K, V>... pairs) | |
| MultiReaderHashBagMultimap | back to summary |
|---|---|
| public MultiReaderHashBagMultimap(Iterable<Pair<K, V>> inputIterable) | |
| collectValues | back to summary |
|---|---|
| public <V2> MultiReaderHashBagMultimap Implements org. Doc from org. Returns a new multimap with the results of applying the specified function on each value of the source multimap. This method is also commonly called transform or map. e.g.
return multimap.collectValues(new Function<Person, String>()
{
public String valueOf(Person person)
{
return person.getLastName();
}
});
| |
| createCollection | back to summary |
|---|---|
| protected MutableBag Implements abstract org. Doc from org. Creates the collection of values for a single key.
Collections with weak, soft, or phantom references are not supported.
Each call to The returned collection class determines whether duplicate key-value pairs are allowed.
| |
| createMap | back to summary |
|---|---|
| protected MutableMap Implements abstract org.
| |
| createMapWithKeyCount | back to summary |
|---|---|
| protected MutableMap Implements abstract org.
| |
| flip | back to summary |
|---|---|
| public MutableBagMultimap Implements org. Doc from org. Given a Multimap from Domain
| |
| newEmpty | back to summary |
|---|---|
| public MultiReaderHashBagMultimap Implements org. Doc from org. Creates a new instance of the same implementation type, using the default capacity and growth parameters.
| |
| newMultimap | back to summary |
|---|---|
| public static <K, V> MultiReaderHashBagMultimap | |
| newMultimap | back to summary |
|---|---|
| public static <K, V> MultiReaderHashBagMultimap | |
| newMultimap | back to summary |
|---|---|
| public static <K, V> MultiReaderHashBagMultimap | |
| newMultimap | back to summary |
|---|---|
| public static <K, V> MultiReaderHashBagMultimap | |
| rejectKeysMultiValues | back to summary |
|---|---|
| public MultiReaderHashBagMultimap Implements org. Doc from org. Returns all elements of the source multimap that don't satisfy the predicate. e.g.
return multimap.rejectKeysMultiValues(new Predicate2<Integer, Iterable<Person>>()
{
public boolean accept(Integer age, Iterable<Person> values)
{
return (age >= 18)
&& ((RichIterable<Person>)values.size() >= 2);
}
});
| |
| rejectKeysValues | back to summary |
|---|---|
| public MultiReaderHashBagMultimap Implements org. Doc from org. Returns all elements of the source multimap that don't satisfy the predicate. e.g.
return multimap.rejectKeysValues(new Predicate2<Integer, Person>()
{
public boolean accept(Integer age, Person person)
{
return (age >= 18)
&& (person.getAddress().getCity().equals("Metuchen"));
}
});
| |
| selectKeysMultiValues | back to summary |
|---|---|
| public MultiReaderHashBagMultimap Implements org. Doc from org. Returns all elements of the source multimap that satisfies the predicate. This method is also commonly called filter. e.g.
return multimap.selectKeysMultiValues(new Predicate2<Integer, Iterable<Person>>()
{
public boolean accept(Integer age, Iterable<Person> values)
{
return (age >= 18)
&& ((RichIterable<Person>)values.size() >= 2);
}
});
| |
| selectKeysValues | back to summary |
|---|---|
| public MultiReaderHashBagMultimap Implements org. Doc from org. Returns all elements of the source multimap that satisfies the predicate. This method is also commonly called filter. e.g.
return multimap.selectKeysValues(new Predicate2<Integer, Person>()
{
public boolean accept(Integer age, Person person)
{
return (age >= 18)
&& (person.getAddress().getCity().equals("Metuchen"));
}
});
| |