Support removal operations when filtering a filtered multimap. Since a filtered multimap has iterators that don't support remove, passing one to the FilteredEntryMultimap constructor would lead to a multimap whose removal operations would fail. This method combines the predicates to avoid that probl
(FilteredMultimap<K, V> multimap, Predicate<? super Entry<K, V>> entryPredicate)
| 2136 | */ |
| 2137 | |
| 2138 | private static <K, V> Multimap<K, V> filterFiltered(FilteredMultimap<K, V> multimap, Predicate<? super Entry<K, V>> entryPredicate) { |
| 2139 | Predicate<Entry<K, V>> predicate = Predicates.<Entry<K, V>>and(multimap.entryPredicate(), entryPredicate); |
| 2140 | return new FilteredEntryMultimap<K, V>(multimap.unfiltered(), predicate); |
| 2141 | } |
| 2142 | |
| 2143 | /** |
| 2144 | * Support removal operations when filtering a filtered multimap. Since a filtered multimap has |
no test coverage detected