Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 80 for retainAll (0.11 sec)

  1. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          assertFalse(keys.remove(null));
          assertFalse(keys.remove(6));
          assertFalse(keys.remove(-6));
          assertFalse(keys.removeAll(asList(null, 0, 15, 1500)));
          assertFalse(keys.retainAll(asList(null, 0, 15, 1500)));
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
      public void testKeySet_remove() {
        for (LoadingCache<Object, Object> cache : caches()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ForMapMultimapAsMapImplementsMapTest.java

        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's HashMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
        try {
          super.testKeySetRemoveAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's TreeMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
        try {
          super.testKeySetRemoveAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

    import java.lang.reflect.Method;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Tests for {@code Multiset#remove}, {@code Multiset.removeAll}, and {@code Multiset.retainAll} not
     * already covered by the corresponding Collection testers.
     *
     * @author Jared Levy
     */
    @GwtCompatible(emulated = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java

      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's TreeMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
        try {
          super.testKeySetRemoveAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/DictionaryFile.java

            }
    
            @Override
            public boolean removeAll(final Collection<?> c) {
                return parent.retainAll(c);
            }
    
            @Override
            public boolean retainAll(final Collection<?> c) {
                return parent.retainAll(c);
            }
    
            @Override
            public void clear() {
                parent.clear();
            }
    
            @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SynchronizedQueueTest.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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 20:50:58 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  10. 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(@CheckForNull Object o) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top