java.io.Externalizable
, java.io.Serializable
, ListMultimap<K,V>
, MutableListMultimap<K,V>
, Multimap<K,V>
, MutableMultimap<K,V>
, OrderedIterableMultimap<K,V>
, ReversibleIterableMultimap<K,V>
public final class MultiReaderFastListMultimap<K,V> extends AbstractMutableListMultimap<K,V> implements java.io.Externalizable
Constructor | Description |
---|---|
MultiReaderFastListMultimap() |
|
MultiReaderFastListMultimap(int distinctKeys,
int valuesPerKey) |
|
MultiReaderFastListMultimap(java.lang.Iterable<Pair<K,V>> inputIterable) |
|
MultiReaderFastListMultimap(Multimap<? extends K,? extends V> multimap) |
|
MultiReaderFastListMultimap(Pair<K,V>... pairs) |
Modifier and Type | Method | Description |
---|---|---|
MutableBagMultimap<V,K> |
flip() |
Given a Multimap from Domain -> Range return a multimap from Range -> Domain.
|
MultiReaderFastListMultimap<K,V> |
newEmpty() |
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
static <K,V> MultiReaderFastListMultimap<K,V> |
newMultimap() |
|
static <K,V> MultiReaderFastListMultimap<K,V> |
newMultimap(java.lang.Iterable<Pair<K,V>> inputIterable) |
|
static <K,V> MultiReaderFastListMultimap<K,V> |
newMultimap(Multimap<? extends K,? extends V> multimap) |
|
static <K,V> MultiReaderFastListMultimap<K,V> |
newMultimap(Pair<K,V>... pairs) |
|
FastListMultimap<K,V> |
rejectKeysMultiValues(Predicate2<? super K,? super java.lang.Iterable<V>> predicate) |
Returns all elements of the source multimap that don't satisfy the predicate.
|
FastListMultimap<K,V> |
rejectKeysValues(Predicate2<? super K,? super V> predicate) |
Returns all elements of the source multimap that don't satisfy the predicate.
|
FastListMultimap<K,V> |
selectKeysMultiValues(Predicate2<? super K,? super java.lang.Iterable<V>> predicate) |
Returns all elements of the source multimap that satisfies the predicate.
|
FastListMultimap<K,V> |
selectKeysValues(Predicate2<? super K,? super V> predicate) |
Returns all elements of the source multimap that satisfies the predicate.
|
collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, toString, valuesView
asSynchronized, collectKeysValues, collectValues, toImmutable, toMutable
clear, get, isEmpty, keySet, put, putAll, putAll, readExternal, remove, removeAll, replaceValues, size, sizeDistinct, toMap, toMap, writeExternal
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, valuesView
get, removeAll, replaceValues
add, clear, put, putAll, putAll, putAllPairs, putAllPairs, remove
public MultiReaderFastListMultimap()
public MultiReaderFastListMultimap(int distinctKeys, int valuesPerKey)
public MultiReaderFastListMultimap(Multimap<? extends K,? extends V> multimap)
public static <K,V> MultiReaderFastListMultimap<K,V> newMultimap()
public static <K,V> MultiReaderFastListMultimap<K,V> newMultimap(Multimap<? extends K,? extends V> multimap)
public static <K,V> MultiReaderFastListMultimap<K,V> newMultimap(Pair<K,V>... pairs)
public static <K,V> MultiReaderFastListMultimap<K,V> newMultimap(java.lang.Iterable<Pair<K,V>> inputIterable)
public MultiReaderFastListMultimap<K,V> newEmpty()
Multimap
newEmpty
in interface ListMultimap<K,V>
newEmpty
in interface Multimap<K,V>
newEmpty
in interface MutableListMultimap<K,V>
newEmpty
in interface MutableMultimap<K,V>
newEmpty
in interface OrderedIterableMultimap<K,V>
newEmpty
in interface ReversibleIterableMultimap<K,V>
public MutableBagMultimap<V,K> flip()
Multimap
public FastListMultimap<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 ListMultimap<K,V>
selectKeysValues
in interface Multimap<K,V>
selectKeysValues
in interface MutableListMultimap<K,V>
selectKeysValues
in interface MutableMultimap<K,V>
selectKeysValues
in interface OrderedIterableMultimap<K,V>
selectKeysValues
in interface ReversibleIterableMultimap<K,V>
predicate
- a Predicate2
to use as the select criteriaMultimap
, which contains elements as a result of the select criteriapublic FastListMultimap<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 ListMultimap<K,V>
rejectKeysValues
in interface Multimap<K,V>
rejectKeysValues
in interface MutableListMultimap<K,V>
rejectKeysValues
in interface MutableMultimap<K,V>
rejectKeysValues
in interface OrderedIterableMultimap<K,V>
rejectKeysValues
in interface ReversibleIterableMultimap<K,V>
predicate
- a Predicate2
to use as the reject criteriaMultimap
, which contains elements that don't satisfy the predicate
public FastListMultimap<K,V> selectKeysMultiValues(Predicate2<? super K,? super java.lang.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 ListMultimap<K,V>
selectKeysMultiValues
in interface Multimap<K,V>
selectKeysMultiValues
in interface MutableListMultimap<K,V>
selectKeysMultiValues
in interface MutableMultimap<K,V>
selectKeysMultiValues
in interface OrderedIterableMultimap<K,V>
selectKeysMultiValues
in interface ReversibleIterableMultimap<K,V>
predicate
- a Predicate2
to use as the select criteriaMultimap
, which contains elements as a result of the select criteriapublic FastListMultimap<K,V> rejectKeysMultiValues(Predicate2<? super K,? super java.lang.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 ListMultimap<K,V>
rejectKeysMultiValues
in interface Multimap<K,V>
rejectKeysMultiValues
in interface MutableListMultimap<K,V>
rejectKeysMultiValues
in interface MutableMultimap<K,V>
rejectKeysMultiValues
in interface OrderedIterableMultimap<K,V>
rejectKeysMultiValues
in interface ReversibleIterableMultimap<K,V>
predicate
- a Predicate2
to use as the reject criteriaMultimap
, which contains elements that don't satisfy the predicate
Copyright © 2004–2017. All rights reserved.