| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected |
| AbstractMutableBagMultimap | back to summary |
|---|---|
| protected AbstractMutableBagMultimap() | |
| AbstractMutableBagMultimap | back to summary |
|---|---|
| protected AbstractMutableBagMultimap(Pair<K, V>... pairs) | |
| AbstractMutableBagMultimap | back to summary |
|---|---|
| protected AbstractMutableBagMultimap(Iterable<Pair<K, V>> inputIterable) | |
| AbstractMutableBagMultimap | back to summary |
|---|---|
| protected AbstractMutableBagMultimap(int size) | |
| asSynchronized | back to summary |
|---|---|
| public MutableBagMultimap 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> HashBagMultimap 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> HashBagMultimap 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());
}
});
| |
| forEachKeyMutableBag | back to summary |
|---|---|
| public void forEachKeyMutableBag(Procedure2<? super K, ? super MutableBag<V>> procedure) Implements org.
| |
| putOccurrences | back to summary |
|---|---|
| public void putOccurrences(K key, V value, int occurrences) Implements org.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Overrides org.
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableBagMultimap 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 MutableBagMultimap Implements org. Doc from org. Returns a mutable copy of this Multimap.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Overrides org.
| |