| collectKeyMultiValues | back to summary |
|---|---|
| public <K2, V2> ImmutableBagMultimap Redeclares org. Doc from org. Returns a new multimap with the results of applying the specified keyFunction and valueFunction on each key and corresponding values of the source multimap. This method is also commonly called transform or map. e.g. return multimap.collectKeyMultiValues(each -> each + 1, Person::getLastName);
| |
| collectKeysValues | back to summary |
|---|---|
| public <K2, V2> ImmutableBagMultimap Redeclares org. Doc from org. Returns a new multimap with the results of applying the specified function on each key and value of the source multimap. This method is also commonly called transform or map. e.g.
return multimap.collectKeysValues(new Function2<Integer, Person, Pair<String, String>>()
{
public Pair<String, String> valueOf(Integer age, Person person)
{
return Tuples.pair(age.toString(), person.getLastName());
}
});
| |
| collectValues | back to summary |
|---|---|
| public <V2> ImmutableListMultimap Redeclares 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();
}
});
| |
| flip | back to summary |
|---|---|
| public ImmutableBagMultimap Redeclares org. Doc from org. Given a Multimap from Domain
| |
| forEachKeyImmutableList | back to summary |
|---|---|
public void forEachKeyImmutableList(Procedure2<? super K, ? super ImmutableList<V>> procedure)
| |
| get | back to summary |
|---|---|
| public ImmutableList Redeclares org. Doc from org. Returns a view of all values associated with the given key. If the given key does not exist, an empty
| |
| newEmpty | back to summary |
|---|---|
| public ImmutableListMultimap Redeclares org. Doc from org. Creates a new instance of the same implementation type, using the default capacity and growth parameters.
| |
| newWith | back to summary |
|---|---|
| public ImmutableListMultimap Redeclares as abstract: org.
| |
| newWithAll | back to summary |
|---|---|
| public ImmutableListMultimap Redeclares as abstract: org.
| |
| newWithout | back to summary |
|---|---|
| public ImmutableListMultimap Redeclares as abstract: org.
| |
| newWithoutAll | back to summary |
|---|---|
| public ImmutableListMultimap Redeclares as abstract: org.
| |
| rejectKeysMultiValues | back to summary |
|---|---|
| public ImmutableListMultimap Redeclares 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 ImmutableListMultimap Redeclares 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 ImmutableListMultimap Redeclares 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 ImmutableListMultimap Redeclares 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"));
}
});
| |