Lines Matching refs:filtered
72 Multimap<String, Integer> filtered = Multimaps.filterKeys(unfiltered, KEY_PREDICATE);
73 assertEquals(1, filtered.size());
74 assertTrue(filtered.containsEntry("foo", 55556));
88 Multimap<String, Integer> filtered = Multimaps.filterValues(unfiltered, VALUE_PREDICATE);
89 assertEquals(1, filtered.size());
90 assertFalse(filtered.containsEntry("foo", 55556));
91 assertTrue(filtered.containsEntry("badkey", 1));
100 Multimap<String, Integer> filtered = Multimaps.filterValues(keyFiltered, VALUE_PREDICATE);
101 assertEquals(1, filtered.size());
102 assertTrue(filtered.containsEntry("foo", 1));
103 assertTrue(filtered.keySet().retainAll(Arrays.asList("cat", "dog")));
104 assertEquals(0, filtered.size());