Externalizable, Serializable, Multimap<K,V>, MutableMultimap<K,V>, MutableSetIterableMultimap<K,V>, MutableSetMultimap<K,V>, SetMultimap<K,V>, UnsortedSetMultimap<K,V>public final class UnifiedSetWithHashingStrategyMultimap<K,V> extends AbstractMutableSetMultimap<K,V> implements Externalizable
| Constructor | Description |
|---|---|
UnifiedSetWithHashingStrategyMultimap() |
Deprecated.
Empty default constructor used for serialization. Instantiating an UnifiedSetWithHashingStrategyMultimap with
this constructor will have a null hashingStrategy and throw NullPointerException when used.
|
UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy) |
|
UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy,
Iterable<Pair<K,V>> inputIterable) |
|
UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy,
Multimap<? extends K,? extends V> multimap) |
|
UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy,
Pair<K,V>... pairs) |
|
UnifiedSetWithHashingStrategyMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap) |
| Modifier and Type | Method | Description |
|---|---|---|
MutableSetMultimap<V,K> |
flip() |
Given a Multimap from Domain
-> Range return a multimap from Range -> Domain. |
HashingStrategy<? super V> |
getValueHashingStrategy() |
|
UnifiedSetWithHashingStrategyMultimap<K,V> |
newEmpty() |
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(HashingStrategy<? super V> hashingStrategy) |
|
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(HashingStrategy<? super V> hashingStrategy,
Iterable<Pair<K,V>> inputIterable) |
|
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(HashingStrategy<? super V> hashingStrategy,
Multimap<? extends K,? extends V> multimap) |
|
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(HashingStrategy<? super V> hashingStrategy,
Pair<K,V>... pairs) |
|
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap) |
|
void |
readExternal(ObjectInput in) |
|
UnifiedSetWithHashingStrategyMultimap<K,V> |
rejectKeysMultiValues(Predicate2<? super K,? super Iterable<V>> predicate) |
Returns all elements of the source multimap that don't satisfy the predicate.
|
UnifiedSetWithHashingStrategyMultimap<K,V> |
rejectKeysValues(Predicate2<? super K,? super V> predicate) |
Returns all elements of the source multimap that don't satisfy the predicate.
|
UnifiedSetWithHashingStrategyMultimap<K,V> |
selectKeysMultiValues(Predicate2<? super K,? super Iterable<V>> predicate) |
Returns all elements of the source multimap that satisfies the predicate.
|
UnifiedSetWithHashingStrategyMultimap<K,V> |
selectKeysValues(Predicate2<? super K,? super V> predicate) |
Returns all elements of the source multimap that satisfies the predicate.
|
void |
writeExternal(ObjectOutput out) |
collectKeyMultiValues, collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, toString, valuesViewclear, get, getIfAbsentPutAll, isEmpty, keySet, put, putAll, putAll, remove, removeAll, replaceValues, size, sizeDistinct, toMap, toMapasSynchronized, collectKeyMultiValues, collectKeysValues, collectValues, toImmutable, toMutablecollectKeyMultiValues, collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, isEmpty, keyBag, keyMultiValuePairsView, keySet, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, size, sizeDistinct, toMap, toMap, valuesViewadd, clear, put, putAll, putAll, putAllPairs, putAllPairs, removeget, getIfAbsentPutAll, removeAll, replaceValues@Deprecated public UnifiedSetWithHashingStrategyMultimap()
public UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy)
public UnifiedSetWithHashingStrategyMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap)
public UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy, Multimap<? extends K,? extends V> multimap)
public UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy, Pair<K,V>... pairs)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(HashingStrategy<? super V> hashingStrategy, Multimap<? extends K,? extends V> multimap)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(HashingStrategy<? super V> hashingStrategy)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(HashingStrategy<? super V> hashingStrategy, Pair<K,V>... pairs)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(HashingStrategy<? super V> hashingStrategy, Iterable<Pair<K,V>> inputIterable)
public UnifiedSetWithHashingStrategyMultimap<K,V> newEmpty()
MultimapnewEmpty in interface Multimap<K,V>newEmpty in interface MutableMultimap<K,V>newEmpty in interface MutableSetIterableMultimap<K,V>newEmpty in interface MutableSetMultimap<K,V>newEmpty in interface SetMultimap<K,V>newEmpty in interface UnsortedSetMultimap<K,V>public HashingStrategy<? super V> getValueHashingStrategy()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractMutableMultimap<K,V,MutableSet<V>>IOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractMutableMultimap<K,V,MutableSet<V>>IOExceptionClassNotFoundExceptionpublic MutableSetMultimap<V,K> flip()
Multimap-> Range return a multimap from Range -> Domain.flip in interface Multimap<K,V>flip in interface MutableMultimap<K,V>flip in interface MutableSetIterableMultimap<K,V>flip in interface MutableSetMultimap<K,V>flip in interface SetMultimap<K,V>public UnifiedSetWithHashingStrategyMultimap<K,V> selectKeysValues(Predicate2<? super K,? super V> predicate)
Multimap
e.g.
return multimap.selectKeysValues(new Predicate2<Integer, Person>()
{
public boolean accept(Integer age, Person person)
{
return (age >= 18)
&& (person.getAddress().getCity().equals("Metuchen"));
}
});
selectKeysValues in interface Multimap<K,V>selectKeysValues in interface MutableMultimap<K,V>selectKeysValues in interface MutableSetIterableMultimap<K,V>selectKeysValues in interface MutableSetMultimap<K,V>selectKeysValues in interface SetMultimap<K,V>selectKeysValues in interface UnsortedSetMultimap<K,V>predicate - a Predicate2 to use as the select criteriaMultimap, which contains elements as a result of the select criteriapublic UnifiedSetWithHashingStrategyMultimap<K,V> rejectKeysValues(Predicate2<? super K,? super V> predicate)
Multimap
e.g.
return multimap.rejectKeysValues(new Predicate2<Integer, Person>()
{
public boolean accept(Integer age, Person person)
{
return (age >= 18)
&& (person.getAddress().getCity().equals("Metuchen"));
}
});
rejectKeysValues in interface Multimap<K,V>rejectKeysValues in interface MutableMultimap<K,V>rejectKeysValues in interface MutableSetIterableMultimap<K,V>rejectKeysValues in interface MutableSetMultimap<K,V>rejectKeysValues in interface SetMultimap<K,V>rejectKeysValues in interface UnsortedSetMultimap<K,V>predicate - a Predicate2 to use as the reject criteriaMultimap, which contains elements that don't satisfy the predicatepublic UnifiedSetWithHashingStrategyMultimap<K,V> selectKeysMultiValues(Predicate2<? super K,? super Iterable<V>> predicate)
Multimap
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);
}
});
selectKeysMultiValues in interface Multimap<K,V>selectKeysMultiValues in interface MutableMultimap<K,V>selectKeysMultiValues in interface MutableSetIterableMultimap<K,V>selectKeysMultiValues in interface MutableSetMultimap<K,V>selectKeysMultiValues in interface SetMultimap<K,V>selectKeysMultiValues in interface UnsortedSetMultimap<K,V>predicate - a Predicate2 to use as the select criteriaMultimap, which contains elements as a result of the select criteriapublic UnifiedSetWithHashingStrategyMultimap<K,V> rejectKeysMultiValues(Predicate2<? super K,? super Iterable<V>> predicate)
Multimap
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);
}
});
rejectKeysMultiValues in interface Multimap<K,V>rejectKeysMultiValues in interface MutableMultimap<K,V>rejectKeysMultiValues in interface MutableSetIterableMultimap<K,V>rejectKeysMultiValues in interface MutableSetMultimap<K,V>rejectKeysMultiValues in interface SetMultimap<K,V>rejectKeysMultiValues in interface UnsortedSetMultimap<K,V>predicate - a Predicate2 to use as the reject criteriaMultimap, which contains elements that don't satisfy the predicateCopyright © 2004–2019. All rights reserved.