Multimaps#filterEntries(Multimap, Predicate).
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Predicate | |
| pack-priv final Multimap |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements com. |
| public boolean | containsKey(Object key)
Implements com. true if this multimap contains at least one key-value pair with the key key.
|
| pack-priv Map | |
| pack-priv Collection | |
| pack-priv Multiset | |
| pack-priv Set | |
| pack-priv Collection | |
| pack-priv Iterator | |
| public Predicate | |
| pack-priv static <E extends @Nullable Object> Collection | |
| public Collection | get(K key)
Implements com. key in this multimap, if any.
|
| public Collection | removeAll(Object key)
Implements com. key.
|
| pack-priv boolean | |
| private boolean | |
| public int | size()
Implements com. |
| public Multimap | |
| pack-priv Collection |
| predicate | back to summary |
|---|---|
| pack-priv final Predicate<? super Map. | |
| unfiltered | back to summary |
|---|---|
| pack-priv final Multimap<K, V> unfiltered | |
| FilteredEntryMultimap | back to summary |
|---|---|
| pack-priv FilteredEntryMultimap(Multimap<K, V> unfiltered, Predicate<? super Map. | |
| clear | back to summary |
|---|---|
| public void clear() Implements com. Doc from com. Removes all key-value pairs from the multimap, leaving it empty.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Implements com. Doc from com. Returns
| |
| createAsMap | back to summary |
|---|---|
| pack-priv Map Implements abstract com.
| |
| createEntries | back to summary |
|---|---|
| pack-priv Collection Implements abstract com.
| |
| createKeys | back to summary |
|---|---|
| pack-priv Multiset Implements abstract com.
| |
| createKeySet | back to summary |
|---|---|
| pack-priv Set Implements abstract com.
| |
| createValues | back to summary |
|---|---|
| pack-priv Collection Implements abstract com.
| |
| entryIterator | back to summary |
|---|---|
| pack-priv Iterator Implements abstract com.
| |
| entryPredicate | back to summary |
|---|---|
| public Predicate Implements com.
| |
| filterCollection | back to summary |
|---|---|
| pack-priv static <E extends @Nullable Object> Collection | |
| get | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Returns a view collection of the values associated with Changes to the returned collection will update the underlying multimap, and vice versa.
| |
| removeAll | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Removes all values associated with the key Once this method returns,
| |
| removeEntriesIf | back to summary |
|---|---|
| pack-priv boolean removeEntriesIf(Predicate<? super Map. | |
| satisfies | back to summary |
|---|---|
| private boolean satisfies(K key, V value) | |
| size | back to summary |
|---|---|
| public int size() Implements com. Doc from com. Returns the number of key-value pairs in this multimap. Note this method does not return the number of distinct keys in the multimap,
which is given by
| |
| unfiltered | back to summary |
|---|---|
| public Multimap Implements com.
| |
| unmodifiableEmptyCollection | back to summary |
|---|---|
| pack-priv Collection | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Overrides java. Implements java. true if this map contains a mapping for the specified
key.
|
| pack-priv Set | createEntrySet()
Implements abstract com. entrySet().
|
| pack-priv Set | |
| pack-priv Collection | |
| public Collection | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. null if this map contains no mapping for the key.
|
| public Collection | remove(Object
key whose mapping is to be removed from the map key)Overrides java. Implements java. |
| AsMap | back to summary |
|---|---|
| pack-priv AsMap() | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Overrides java. Implements java. Doc from java. Returns
| |
| createEntrySet | back to summary |
|---|---|
| pack-priv Set Implements abstract com. Doc from com. Creates the entry set to be returned by
| |
| createKeySet | back to summary |
|---|---|
| pack-priv Set Overrides com.
| |
| createValues | back to summary |
|---|---|
| pack-priv Collection Overrides com.
| |
| get | back to summary |
|---|---|
| public Collection Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| remove | back to summary |
|---|---|
| public Collection Overrides java. Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Set | entrySet()
Overrides com. Implements com. Multiset.Entry instances,
each providing an element of the multiset and the count of that element.
|
| public int | remove(Object
the element to conditionally remove occurrences of key, int the number of occurrences of the element to remove. May be zero, in which
case no change will be made. occurrences)Overrides com. Implements com. |
| Keys | back to summary |
|---|---|
| pack-priv Keys() | |
| entrySet | back to summary |
|---|---|
| public Set Overrides com. Implements com. Doc from com. Returns a view of the contents of this multiset, grouped into The entry set is backed by the same data as the multiset, so any change to either is
immediately reflected in the other. However, multiset changes may or may not be reflected in
any | |
| remove | back to summary |
|---|---|
| public int remove(Object key, int occurrences) Overrides com. Implements com. Doc from com. Removes a number of occurrences of the specified element from this multiset. If the multiset
contains fewer than this number of occurrences to begin with, all occurrences will be removed.
Note that if | |
| Modifier and Type | Field and Description |
|---|---|
| private final K |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | apply(V value)
Implements com. input (Java 8 users, see notes in the
class documentation above).
|
| key | back to summary |
|---|---|
| private final K key
| |
| ValuePredicate | back to summary |
|---|---|
| pack-priv ValuePredicate(K key) | |
| apply | back to summary |
|---|---|
| public boolean apply(V value) Implements com. Doc from com. Returns the result of applying this predicate to
| |