| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected |
| AbstractMutableSetMultimap | back to summary |
|---|---|
| protected AbstractMutableSetMultimap() | |
| AbstractMutableSetMultimap | back to summary |
|---|---|
| protected AbstractMutableSetMultimap(Pair<K, V>... pairs) | |
| AbstractMutableSetMultimap | back to summary |
|---|---|
| protected AbstractMutableSetMultimap(Iterable<Pair<K, V>> inputIterable) | |
| AbstractMutableSetMultimap | back to summary |
|---|---|
| protected AbstractMutableSetMultimap(int size) | |
| asSynchronized | back to summary |
|---|---|
| public MutableSetMultimap Implements org. Doc from org. Returns a synchronized wrapper backed by this multimap. The preferred way of iterating over a synchronized multimap is to use the forEachKey(), forEachValue(), forEachKeyValue() and forEachKeyMultiValues methods which are properly synchronized internally. MutableMultimap synchedMultimap = multimap.asSynchronized(); synchedMultimap.forEachKey(key -> ... ); synchedMultimap.forEachValue(value -> ... ); synchedMultimap.forEachKeyValue((key, value) -> ... ); synchedMultimap.forEachKeyMultiValues((key, values) -> ... ); If you want to iterate imperatively over the keySet(), keysView(), valuesView(), or other views, you will need to protect the iteration by wrapping the code in a synchronized block on the multimap.
| |
| collectKeyMultiValues | back to summary |
|---|---|
| public <K2, V2> MutableBagMultimap Implements 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> MutableBagMultimap Implements 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> MutableBagMultimap 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();
}
});
| |
| forEachKeyMutableSet | back to summary |
|---|---|
| public void forEachKeyMutableSet(Procedure2<? super K, ? super MutableSet<V>> procedure) Implements org.
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableSetMultimap Implements org. Doc from org. Returns an immutable copy of this Multimap if it is not already immutable. If the Multimap is immutable, it will return itself. The returned Multimap will be
| |
| toMutable | back to summary |
|---|---|
| public MutableSetMultimap Implements org. Doc from org. Returns a mutable copy of this Multimap.
| |