| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | ImmutableSortedBagMultimapImpl(MutableMap<K, ImmutableSortedBag<V>> map, Comparator<? super V> comparator)
|
| pack-priv | |
| public | ImmutableSortedBagMultimapImpl(ImmutableMap<K, ImmutableSortedBag<V>> map, Comparator<? super V> comparator)
|
| comparator | back to summary |
|---|---|
| private final Comparator<? super V> comparator | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ImmutableSortedBagMultimapImpl | back to summary |
|---|---|
| pack-priv ImmutableSortedBagMultimapImpl(MutableMap<K, ImmutableSortedBag<V>> map) | |
| ImmutableSortedBagMultimapImpl | back to summary |
|---|---|
| public ImmutableSortedBagMultimapImpl(MutableMap<K, ImmutableSortedBag<V>> map, Comparator<? super V> comparator) | |
| ImmutableSortedBagMultimapImpl | back to summary |
|---|---|
| pack-priv ImmutableSortedBagMultimapImpl(ImmutableMap<K, ImmutableSortedBag<V>> map) | |
| ImmutableSortedBagMultimapImpl | back to summary |
|---|---|
| public ImmutableSortedBagMultimapImpl(ImmutableMap<K, ImmutableSortedBag<V>> map, Comparator<? super V> comparator) | |
| collectKeyMultiValues | back to summary |
|---|---|
| public <K2, V2> ImmutableBagMultimap 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> ImmutableBagMultimap 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> ImmutableListMultimap 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();
}
});
| |
| comparator | back to summary |
|---|---|
| public Comparator Implements org.
| |
| createCollection | back to summary |
|---|---|
| protected ImmutableSortedBag 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.
| |
| flip | back to summary |
|---|---|
| public ImmutableBagMultimap Implements org. Doc from org. Given a Multimap from Domain
| |
| newEmpty | back to summary |
|---|---|
| public ImmutableSortedBagMultimap Implements 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 ImmutableSortedBagMultimap Overrides default org. Implements org.
| |
| newWithAll | back to summary |
|---|---|
| public ImmutableSortedBagMultimap Overrides default org. Implements org.
| |
| newWithout | back to summary |
|---|---|
| public ImmutableSortedBagMultimap Overrides default org. Implements org.
| |
| newWithoutAll | back to summary |
|---|---|
| public ImmutableSortedBagMultimap Overrides default org. Implements org.
| |
| rejectKeysMultiValues | back to summary |
|---|---|
| public ImmutableSortedBagMultimap 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 ImmutableSortedBagMultimap 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 ImmutableSortedBagMultimap 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 ImmutableSortedBagMultimap 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"));
}
});
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableSortedBagMultimapImpl Overrides org. 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 MutableSortedBagMultimap Implements org. Doc from org. Returns a mutable copy of this Multimap.
| |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() | |
| Modifier and Type | Field and Description |
|---|---|
| private Comparator | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| private | ImmutableSortedBagMultimapSerializationProxy(ImmutableMap<K, ImmutableSortedBag<V>> map, Comparator<? super V> comparator)
|
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractMutableMultimap | |
| public void | readExternal(ObjectInput in)
Overrides org. Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public void | writeExternal(ObjectOutput out)
Overrides org. Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| comparator | back to summary |
|---|---|
| private Comparator<? super V> comparator | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ImmutableSortedBagMultimapSerializationProxy | back to summary |
|---|---|
| public ImmutableSortedBagMultimapSerializationProxy() | |
| ImmutableSortedBagMultimapSerializationProxy | back to summary |
|---|---|
| private ImmutableSortedBagMultimapSerializationProxy(ImmutableMap<K, ImmutableSortedBag<V>> map, Comparator<? super V> comparator) | |
| createEmptyMutableMultimap | back to summary |
|---|---|
| protected AbstractMutableMultimap Implements abstract org.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Overrides org. Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Overrides org. Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |