Support clear(), removeAll(), and retainAll() when filtering a filtered map.
(AbstractFilteredMap<K, V> map, Predicate<? super Entry<K, V>> entryPredicate)
| 2693 | */ |
| 2694 | |
| 2695 | private static <K, V> Map<K, V> filterFiltered(AbstractFilteredMap<K, V> map, Predicate<? super Entry<K, V>> entryPredicate) { |
| 2696 | return new FilteredEntryMap<K, V>(map.unfiltered, Predicates.<Entry<K, V>>and(map.predicate, entryPredicate)); |
| 2697 | } |
| 2698 | |
| 2699 | private abstract static class AbstractFilteredMap<K, V> extends ViewCachingAbstractMap<K, V> { |
| 2700 | final Map<K, V> unfiltered; |
no test coverage detected