- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for retainAll (0.08 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java
assertThrows(NullPointerException.class, () -> collection.retainAll(null)); } private void expectReturnsTrue(Target target) { String message = Platform.format("retainAll(%s) should return true", target); assertTrue(message, collection.retainAll(target.toRetain)); } private void expectReturnsFalse(Target target) { String message = Platform.format("retainAll(%s) should return false", target);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 18 15:05:43 UTC 2025 - 10.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java
assertThrows(NullPointerException.class, () -> collection.retainAll(null)); } private void expectReturnsTrue(Target target) { String message = Platform.format("retainAll(%s) should return true", target); assertTrue(message, collection.retainAll(target.toRetain)); } private void expectReturnsFalse(Target target) { String message = Platform.format("retainAll(%s) should return false", target);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 18 15:05:43 UTC 2025 - 10.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java
assertTrue(Thread.holdsLock(mutex)); return delegate.addAll(collection); } @Override public boolean retainAll(Collection<?> collection) { assertTrue(Thread.holdsLock(mutex)); return delegate.retainAll(collection); } @Override public void clear() { assertTrue(Thread.holdsLock(mutex)); delegate.clear(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 7.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
boolean didRemove = entrySet.retainAll(entriesToRetain); assertEquals(shouldRemove, didRemove); assertEquals(entriesToRetain.size(), map.size()); for (Entry<K, V> entry : entriesToRetain) { assertTrue(entrySet.contains(entry)); } } else { assertThrows(UnsupportedOperationException.class, () -> entrySet.retainAll(entriesToRetain)); } assertInvariants(map);Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 43.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FilteredEntryMultimap.java
} @Override public boolean removeAll(Collection<?> c) { return removeEntriesIf(Maps.<K>keyPredicateOnEntries(in(c))); } @Override public boolean retainAll(Collection<?> c) { return removeEntriesIf(Maps.<K>keyPredicateOnEntries(not(in(c)))); } @Override public boolean remove(@Nullable Object o) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java
assertTrue(Thread.holdsLock(mutex)); return delegate.addAll(collection); } @Override public boolean retainAll(Collection<?> collection) { assertTrue(Thread.holdsLock(mutex)); return delegate.retainAll(collection); } @Override public void clear() { assertTrue(Thread.holdsLock(mutex)); delegate.clear(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 7.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/FilteredEntryMultimap.java
} @Override public boolean removeAll(Collection<?> c) { return removeEntriesIf(Maps.<K>keyPredicateOnEntries(in(c))); } @Override public boolean retainAll(Collection<?> c) { return removeEntriesIf(Maps.<K>keyPredicateOnEntries(not(in(c)))); } @Override public boolean remove(@Nullable Object o) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingMultiset.java
return Multisets.removeAllImpl(this, elementsToRemove); } /** * A sensible definition of {@link #retainAll} in terms of the {@code retainAll} method of {@link * #elementSet}. If you override {@link #elementSet}, you may wish to override {@link #retainAll} * to forward to this implementation. * * @since 7.0 */ @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 10.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java
// Split out all the specified sizes. Set<Feature<?>> sizesToTest = Helpers.<Feature<?>>copyToSet(CollectionSize.values()); sizesToTest.retainAll(features); features.removeAll(sizesToTest); addImpliedFeatures(sizesToTest); sizesToTest.retainAll(asList(CollectionSize.ZERO, CollectionSize.ONE, CollectionSize.SEVERAL)); logger.fine(" Sizes: " + formatFeatureSet(sizesToTest));Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 5.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/StandardTable.java
} return changed; } @Override public boolean retainAll(Collection<?> c) { checkNotNull(c); boolean changed = false; Iterator<Map<C, V>> iterator = backingMap.values().iterator(); while (iterator.hasNext()) { Map<C, V> map = iterator.next(); if (map.keySet().retainAll(c)) { changed = true; if (map.isEmpty()) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 30.2K bytes - Viewed (0)