Searched refs:toRetain (Results 1 – 4 of 4) sorted by relevance
51 private final Collection<E> toRetain; field in CollectionRetainAllTester.Target54 private Target(Collection<E> toRetain, String description) { in Target() argument55 this.toRetain = toRetain; in Target()186 expectContents(nonEmptyProperSubset.toRetain); in testRetainAll_subset()271 expectContents(nullSingleton.toRetain); in testRetainAll_nullSingletonPreviouslySeveralWithNull()316 assertTrue(message, collection.retainAll(target.toRetain)); in expectReturnsTrue()322 assertFalse(message, collection.retainAll(target.toRetain)); in expectReturnsFalse()327 collection.retainAll(target.toRetain); in expectThrows()338 assertFalse(message, collection.retainAll(target.toRetain)); in expectReturnsFalseOrThrows()
141 Multiset<String> toRetain = in testRetainOccurrencesEmpty() local143 assertFalse(Multisets.retainOccurrences(multiset, toRetain)); in testRetainOccurrencesEmpty()187 Multiset<String> toRetain = HashMultiset.create(); in testRetainEmptyOccurrences() local188 assertTrue(Multisets.retainOccurrences(multiset, toRetain)); in testRetainEmptyOccurrences()195 Multiset<String> toRetain = in testRetainOccurrences() local197 assertTrue(Multisets.retainOccurrences(multiset, toRetain)); in testRetainOccurrences()
2172 Set<K> toRetain = Sets.newHashSet();2175 toRetain.add(entry.getKey());2178 return map().keySet().retainAll(toRetain);
2201 Set<K> toRetain = Sets.newHashSet();2204 toRetain.add(entry.getKey());2207 return map().keySet().retainAll(toRetain);