Home
last modified time | relevance | path

Searched refs:retainAll (Results 1 – 25 of 209) sorted by relevance

123456789

/external/cldr/tools/java/org/unicode/cldr/util/
DBuilder.java193 public CBuilder<E, U> retainAll(Collection<? extends E> c) { in retainAll() method in Builder.CBuilder
194 collection.retainAll(c); in retainAll()
199 public CBuilder<E, U> retainAll(E... items) { in retainAll() method in Builder.CBuilder
200 collection.retainAll(Arrays.asList(items)); in retainAll()
204 public CBuilder<E, U> retainAll(Iterator<E> items) { in retainAll() method in Builder.CBuilder
206 collection.retainAll(temp); in retainAll()
210 public CBuilder<E, U> retainAll(Transform<E, Boolean> predicate) { in retainAll() method in Builder.CBuilder
211 collection.retainAll(getMatchingItems(predicate, collection, new HashSet<E>())); in retainAll()
431 public MBuilder<K, V, M> retainAll(Transform<K, Boolean> predicate) { in retainAll() method in Builder.MBuilder
432 map.keySet().retainAll(getMatchingItems(predicate, map.keySet(), new HashSet<K>())); in retainAll()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionRetainAllTester.java297 collection.retainAll(null); in testRetainAll_nullCollectionReferenceEmptySubject()
307 collection.retainAll(null); in testRetainAll_nullCollectionReferenceNonEmptySubject()
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()
DListRetainAllTester.java48 collection.retainAll(MinimalCollection.of(createSamplesArray()))); in testRetainAll_duplicatesKept()
60 collection.retainAll(MinimalCollection.of(samples.e2))); in testRetainAll_duplicatesRemoved()
69 assertTrue(getList().retainAll(Arrays.asList(samples.e0, samples.e1))); in testRetainAll_countIgnored()
/external/guava/guava/src/com/google/common/collect/
DForwardingCollection.java103 public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingCollection
104 return delegate().retainAll(collection); in retainAll()
195 return Iterators.retainAll(iterator(), collection); in standardRetainAll()
DFilteredEntryMultimap.java226 public boolean retainAll(Collection<?> c) { in createKeySet() method in FilteredEntryMultimap.AsMap
273 public boolean retainAll(Collection<?> c) { in createEntrySet()
317 public boolean retainAll(Collection<?> c) {
396 public boolean retainAll(Collection<?> c) {
/external/guava/guava-tests/test/com/google/common/cache/
DEmptyCachesTest.java165 assertFalse(keys.retainAll(asList(null, 0, 15, 1500))); in testKeySet_empty_remove()
185 assertFalse(keys.retainAll(asList(null, 0, 15, 1500))); in testKeySet_remove()
242 assertFalse(values.retainAll(asList(null, 0, 15, 1500))); in testValues_empty_remove()
262 assertFalse(values.retainAll(asList(null, 0, 15, 1500))); in testValues_remove()
319 assertFalse(entrySet.retainAll(asList(null, entryOf(0, 0), entryOf(15, 15)))); in testEntrySet_empty_remove()
339 assertFalse(entrySet.retainAll(asList(null, entryOf(1, 1), entryOf(15, 15)))); in testEntrySet_remove()
/external/guava/guava-tests/test/com/google/common/collect/
DMapsTransformValuesUnmodifiableIteratorTest.java68 @Override public boolean retainAll(Collection<?> c) { in keySet() method in MapsTransformValuesUnmodifiableIteratorTest.UnmodifiableIteratorMap
69 return delegate.keySet().retainAll(c); in keySet()
85 @Override public boolean retainAll(Collection<?> c) { in values() method
86 return delegate.values().retainAll(c); in values()
102 @Override public boolean retainAll(Collection<?> c) {
103 return delegate.entrySet().retainAll(c);
DSynchronizedQueueTest.java129 public boolean retainAll(Collection<?> collection) { in retainAll() method in SynchronizedQueueTest.TestQueue
131 return delegate.retainAll(collection); in retainAll()
172 create().retainAll(ImmutableList.of("foo")); in testHoldsLockOnAllOperations()
DForwardingMultisetTest.java87 @Override public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingMultisetTest.StandardImplForwardingMultiset
221 @Override public boolean retainAll(Collection<?> collection) { in suite()
252 @Override public boolean retainAll(Collection<?> collection) { in suite()
329 forward().retainAll(EMPTY_COLLECTION); in testRetainAll_Collection()
DSynchronizedDequeTest.java129 public boolean retainAll(Collection<?> collection) { in retainAll() method in SynchronizedDequeTest.TestDeque
131 return delegate.retainAll(collection); in retainAll()
274 create().retainAll(ImmutableList.of("foo")); in testHoldsLockOnAllOperations()
/external/cldr/tools/java/org/unicode/cldr/posix/
DPOSIX_LCCtype.java71 UnicodeSet us = new UnicodeSet(types[i][1]).retainAll(chars); in write()
85 UnicodeSet lowers = new UnicodeSet(types[1][1]).retainAll(chars); in write()
105 UnicodeSet uppers = new UnicodeSet(types[0][1]).retainAll(chars); in write()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DProtobufArrayListTest.java253 list.retainAll(Collections.emptyList()); in assertImmutable()
260 list.retainAll(Collections.singleton(1)); in assertImmutable()
267 list.retainAll(UNARY_LIST); in assertImmutable()
DDoubleArrayListTest.java416 list.retainAll(Collections.<Double>emptyList()); in assertImmutable()
423 list.retainAll(Collections.singleton(1D)); in assertImmutable()
430 list.retainAll(UNARY_LIST); in assertImmutable()
DLongArrayListTest.java416 list.retainAll(Collections.<Long>emptyList()); in assertImmutable()
423 list.retainAll(Collections.singleton(1L)); in assertImmutable()
430 list.retainAll(UNARY_LIST); in assertImmutable()
DIntArrayListTest.java416 list.retainAll(Collections.<Integer>emptyList()); in assertImmutable()
423 list.retainAll(Collections.singleton(1)); in assertImmutable()
430 list.retainAll(UNARY_LIST); in assertImmutable()
DBooleanArrayListTest.java412 list.retainAll(Collections.<Boolean>emptyList()); in assertImmutable()
419 list.retainAll(Collections.singleton(Boolean.TRUE)); in assertImmutable()
426 list.retainAll(UNARY_LIST); in assertImmutable()
DFloatArrayListTest.java416 list.retainAll(Collections.<Float>emptyList()); in assertImmutable()
423 list.retainAll(Collections.singleton(1F)); in assertImmutable()
430 list.retainAll(UNARY_LIST); in assertImmutable()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCollectionSet.java76 public boolean retainAll(Collection<?> c) { in retainAll() method in CollectionSet
77 return data.retainAll(c); in retainAll()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCollectionSet.java78 public boolean retainAll(Collection<?> c) { in retainAll() method in CollectionSet
79 return data.retainAll(c); in retainAll()
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_CollectionTest.java88 .retainAll(myCollection)); in runTest()
90 .retainAll(myCollection)); // should not change the colletion in runTest()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DAbstractProtobufList.java160 public boolean retainAll(Collection<?> c) { in retainAll() method in AbstractProtobufList
162 return super.retainAll(c); in retainAll()
DMapFieldLite.java380 public boolean retainAll(Collection<?> c) { in retainAll() method in MapFieldLite.MutatabilityAwareCollection
382 return delegate.retainAll(c); in retainAll()
473 public boolean retainAll(Collection<?> c) { in retainAll() method in MapFieldLite.MutatabilityAwareSet
475 return delegate.retainAll(c); in retainAll()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java719 boolean didRemove = entrySet.retainAll(entriesToRetain); in testEntrySetRetainAll()
727 entrySet.retainAll(entriesToRetain); in testEntrySetRetainAll()
747 entrySet.retainAll(null); in testEntrySetRetainAllNullFromEmpty()
754 entrySet.retainAll(null); in testEntrySetRetainAllNullFromEmpty()
1330 keys.retainAll(Collections.singleton(key)); in testKeySetRetainAll()
1335 keys.retainAll(Collections.singleton(key)); in testKeySetRetainAll()
1407 keySet.retainAll(null); in testKeySetRetainAllNullFromEmpty()
1414 keySet.retainAll(null); in testKeySetRetainAllNullFromEmpty()
1605 valueCollection.retainAll(valuesToRetain); in testValuesRetainAll()
1614 valueCollection.retainAll(valuesToRetain); in testValuesRetainAll()
[all …]
DPerCollectionSizeTestSuiteBuilder.java75 sizesToTest.retainAll(features); in createTestSuite()
79 sizesToTest.retainAll(Arrays.asList( in createTestSuite()
/external/mockito/src/main/java/org/mockito/internal/util/collections/
DHashCodeAndEqualsSafeSet.java127 public boolean retainAll(Collection<?> mocks) { in retainAll() method
128 return backingHashSet.retainAll(asWrappedMocks(mocks)); in retainAll()

123456789