Home
last modified time | relevance | path

Searched refs:toRetain (Results 1 – 4 of 4) sorted by relevance

/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionRetainAllTester.java51 private final Collection<E> toRetain; field in CollectionRetainAllTester.Target
54 private Target(Collection<E> toRetain, String description) { in Target() argument
55 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()
/external/guava/guava-tests/test/com/google/common/collect/
DMultisetsTest.java141 Multiset<String> toRetain = in testRetainOccurrencesEmpty() local
143 assertFalse(Multisets.retainOccurrences(multiset, toRetain)); in testRetainOccurrencesEmpty()
187 Multiset<String> toRetain = HashMultiset.create(); in testRetainEmptyOccurrences() local
188 assertTrue(Multisets.retainOccurrences(multiset, toRetain)); in testRetainEmptyOccurrences()
195 Multiset<String> toRetain = in testRetainOccurrences() local
197 assertTrue(Multisets.retainOccurrences(multiset, toRetain)); in testRetainOccurrences()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMaps.java2172 Set<K> toRetain = Sets.newHashSet();
2175 toRetain.add(entry.getKey());
2178 return map().keySet().retainAll(toRetain);
/external/guava/guava/src/com/google/common/collect/
DMaps.java2201 Set<K> toRetain = Sets.newHashSet();
2204 toRetain.add(entry.getKey());
2207 return map().keySet().retainAll(toRetain);