- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 62 for retainAll (0.1 sec)
-
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-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java
} @CollectionSize.Require(ONE) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testEntrySet_retainAllPresent() { assertFalse( "multiset.entrySet.retainAll(presentEntry) returned false", getMultiset().entrySet().retainAll(singleton(Multisets.immutableEntry(e0(), 1)))); assertTrue( "multiset doesn't contains element after retaining its entry", getMultiset().contains(e0())); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 9.6K 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-tests/test/com/google/common/collect/LockHeldAssertingSet.java
public boolean removeAll(Collection<?> c) { assertTrue(Thread.holdsLock(mutex)); return super.removeAll(c); } @Override public boolean retainAll(Collection<?> c) { assertTrue(Thread.holdsLock(mutex)); return super.retainAll(c); } @Override public int size() { assertTrue(Thread.holdsLock(mutex)); return super.size(); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.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-tests/test/com/google/common/collect/LockHeldAssertingSet.java
public boolean removeAll(Collection<?> c) { assertTrue(Thread.holdsLock(mutex)); return super.removeAll(c); } @Override public boolean retainAll(Collection<?> c) { assertTrue(Thread.holdsLock(mutex)); return super.retainAll(c); } @Override public int size() { assertTrue(Thread.holdsLock(mutex)); return super.size(); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.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)