| Modifier and Type | Method and Description |
|---|---|
| public BagMultimap | flip()
Redeclares org. Given a Multimap from Domain |
| public Bag | get(K key)
Redeclares org. Returns a view of all values associated with the given key. |
| public BagMultimap | newEmpty()
Redeclares org. Creates a new instance of the same implementation type, using the default capacity and growth parameters. |
| public BagMultimap | rejectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate)
Redeclares org. Returns all elements of the source multimap that don't satisfy the predicate. |
| public BagMultimap | rejectKeysValues(Predicate2<? super K, ? super V> predicate)
Redeclares org. Returns all elements of the source multimap that don't satisfy the predicate. |
| public BagMultimap | selectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate)
Redeclares org. Returns all elements of the source multimap that satisfies the predicate. |
| public BagMultimap | selectKeysValues(Predicate2<? super K, ? super V> predicate)
Redeclares org. Returns all elements of the source multimap that satisfies the predicate. |
| flip | back to summary |
|---|---|
| public BagMultimap Redeclares org. Doc from org. Given a Multimap from Domain
| |
| get | back to summary |
|---|---|
| public Bag 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 BagMultimap Redeclares org. Doc from org. Creates a new instance of the same implementation type, using the default capacity and growth parameters.
| |
| rejectKeysMultiValues | back to summary |
|---|---|
| public BagMultimap 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 BagMultimap 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 BagMultimap 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 BagMultimap 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"));
}
});
| |