Home
last modified time | relevance | path

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

12345678910

/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.java286 collection.retainAll(null); in testRetainAll_nullCollectionReferenceEmptySubject()
296 collection.retainAll(null); in testRetainAll_nullCollectionReferenceNonEmptySubject()
304 assertTrue(message, collection.retainAll(target.toRetain)); in expectReturnsTrue()
309 assertFalse(message, collection.retainAll(target.toRetain)); in expectReturnsFalse()
314 collection.retainAll(target.toRetain); in expectThrows()
324 assertFalse(message, collection.retainAll(target.toRetain)); in expectReturnsFalseOrThrows()
DListRetainAllTester.java49 collection.retainAll(MinimalCollection.of(createSamplesArray()))); in testRetainAll_duplicatesKept()
62 collection.retainAll(MinimalCollection.of(e2()))); in testRetainAll_duplicatesRemoved()
71 assertTrue(getList().retainAll(Arrays.asList(e0(), e1()))); in testRetainAll_countIgnored()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionRetainAllTester.java286 collection.retainAll(null); in testRetainAll_nullCollectionReferenceEmptySubject()
296 collection.retainAll(null); in testRetainAll_nullCollectionReferenceNonEmptySubject()
304 assertTrue(message, collection.retainAll(target.toRetain)); in expectReturnsTrue()
309 assertFalse(message, collection.retainAll(target.toRetain)); in expectReturnsFalse()
314 collection.retainAll(target.toRetain); in expectThrows()
324 assertFalse(message, collection.retainAll(target.toRetain)); in expectReturnsFalseOrThrows()
DListRetainAllTester.java49 collection.retainAll(MinimalCollection.of(createSamplesArray()))); in testRetainAll_duplicatesKept()
62 collection.retainAll(MinimalCollection.of(e2()))); in testRetainAll_duplicatesRemoved()
71 assertTrue(getList().retainAll(Arrays.asList(e0(), e1()))); in testRetainAll_countIgnored()
/external/guava/guava/src/com/google/common/collect/
DForwardingCollection.java109 public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingCollection
110 return delegate().retainAll(collection); in retainAll()
198 return Iterators.retainAll(iterator(), collection); in standardRetainAll()
/external/guava/android/guava/src/com/google/common/collect/
DForwardingCollection.java109 public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingCollection
110 return delegate().retainAll(collection); in retainAll()
198 return Iterators.retainAll(iterator(), collection); in standardRetainAll()
/external/guava/android/guava-tests/test/com/google/common/cache/
DEmptyCachesTest.java158 assertFalse(keys.retainAll(asList(null, 0, 15, 1500))); in testKeySet_empty_remove()
178 assertFalse(keys.retainAll(asList(null, 0, 15, 1500))); in testKeySet_remove()
232 assertFalse(values.retainAll(asList(null, 0, 15, 1500))); in testValues_empty_remove()
252 assertFalse(values.retainAll(asList(null, 0, 15, 1500))); in testValues_remove()
306 assertFalse(entrySet.retainAll(asList(null, entryOf(0, 0), entryOf(15, 15)))); in testEntrySet_empty_remove()
326 assertFalse(entrySet.retainAll(asList(null, entryOf(1, 1), entryOf(15, 15)))); in testEntrySet_remove()
/external/guava/guava-tests/test/com/google/common/cache/
DEmptyCachesTest.java158 assertFalse(keys.retainAll(asList(null, 0, 15, 1500))); in testKeySet_empty_remove()
178 assertFalse(keys.retainAll(asList(null, 0, 15, 1500))); in testKeySet_remove()
232 assertFalse(values.retainAll(asList(null, 0, 15, 1500))); in testValues_empty_remove()
252 assertFalse(values.retainAll(asList(null, 0, 15, 1500))); in testValues_remove()
306 assertFalse(entrySet.retainAll(asList(null, entryOf(0, 0), entryOf(15, 15)))); in testEntrySet_empty_remove()
326 assertFalse(entrySet.retainAll(asList(null, entryOf(1, 1), entryOf(15, 15)))); in testEntrySet_remove()
/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/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/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/guava/guava-tests/test/com/google/common/collect/
DMapsTransformValuesUnmodifiableIteratorTest.java76 public boolean retainAll(Collection<?> c) { in keySet() method in MapsTransformValuesUnmodifiableIteratorTest.UnmodifiableIteratorMap
77 return delegate.keySet().retainAll(c); in keySet()
101 public boolean retainAll(Collection<?> c) { in values() method
102 return delegate.values().retainAll(c); in values()
126 public boolean retainAll(Collection<?> c) {
127 return delegate.entrySet().retainAll(c);
DSynchronizedQueueTest.java130 public boolean retainAll(Collection<?> collection) { in retainAll() method in SynchronizedQueueTest.TestQueue
132 return delegate.retainAll(collection); in retainAll()
173 create().retainAll(ImmutableList.of("foo")); in testHoldsLockOnAllOperations()
/external/guava/android/guava-tests/test/com/google/common/collect/
DMapsTransformValuesUnmodifiableIteratorTest.java76 public boolean retainAll(Collection<?> c) { in keySet() method in MapsTransformValuesUnmodifiableIteratorTest.UnmodifiableIteratorMap
77 return delegate.keySet().retainAll(c); in keySet()
101 public boolean retainAll(Collection<?> c) { in values() method
102 return delegate.values().retainAll(c); in values()
126 public boolean retainAll(Collection<?> c) {
127 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.java98 public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingMultisetTest.StandardImplForwardingMultiset
273 public boolean retainAll(Collection<?> collection) { in suite()
315 public boolean retainAll(Collection<?> collection) { in suite()
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/protobuf/java/core/src/main/java/com/google/protobuf/
DAbstractProtobufList.java155 public boolean retainAll(Collection<?> c) { in retainAll() method in AbstractProtobufList
157 return super.retainAll(c); in retainAll()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DProtobufArrayListTest.java356 list.retainAll(Collections.emptyList()); in assertImmutable()
363 list.retainAll(Collections.singleton(1)); in assertImmutable()
370 list.retainAll(UNARY_LIST); in assertImmutable()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java703 boolean didRemove = entrySet.retainAll(entriesToRetain); in testEntrySetRetainAll()
711 entrySet.retainAll(entriesToRetain); in testEntrySetRetainAll()
730 entrySet.retainAll(null); in testEntrySetRetainAllNullFromEmpty()
736 entrySet.retainAll(null); in testEntrySetRetainAllNullFromEmpty()
1292 keys.retainAll(Collections.singleton(key)); in testKeySetRetainAll()
1297 keys.retainAll(Collections.singleton(key)); in testKeySetRetainAll()
1364 keySet.retainAll(null); in testKeySetRetainAllNullFromEmpty()
1370 keySet.retainAll(null); in testKeySetRetainAllNullFromEmpty()
1552 valueCollection.retainAll(valuesToRetain); in testValuesRetainAll()
1561 valueCollection.retainAll(valuesToRetain); in testValuesRetainAll()
[all …]
DPerCollectionSizeTestSuiteBuilder.java68 sizesToTest.retainAll(features); in createTestSuite()
72 sizesToTest.retainAll( in createTestSuite()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java703 boolean didRemove = entrySet.retainAll(entriesToRetain); in testEntrySetRetainAll()
711 entrySet.retainAll(entriesToRetain); in testEntrySetRetainAll()
730 entrySet.retainAll(null); in testEntrySetRetainAllNullFromEmpty()
736 entrySet.retainAll(null); in testEntrySetRetainAllNullFromEmpty()
1292 keys.retainAll(Collections.singleton(key)); in testKeySetRetainAll()
1297 keys.retainAll(Collections.singleton(key)); in testKeySetRetainAll()
1364 keySet.retainAll(null); in testKeySetRetainAllNullFromEmpty()
1370 keySet.retainAll(null); in testKeySetRetainAllNullFromEmpty()
1552 valueCollection.retainAll(valuesToRetain); in testValuesRetainAll()
1561 valueCollection.retainAll(valuesToRetain); in testValuesRetainAll()
[all …]
DPerCollectionSizeTestSuiteBuilder.java68 sizesToTest.retainAll(features); in createTestSuite()
72 sizesToTest.retainAll( 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()

12345678910