Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for retainAll (0.19 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        try {
          collection.retainAll(null);
          fail("retainAll(null) should throw NullPointerException");
        } catch (NullPointerException expected) {
        }
      }
    
      private void expectReturnsTrue(Target target) {
        String message = Platform.format("retainAll(%s) should return true", target);
        assertTrue(message, collection.retainAll(target.toRetain));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        try {
          collection.retainAll(null);
          fail("retainAll(null) should throw NullPointerException");
        } catch (NullPointerException expected) {
        }
      }
    
      private void expectReturnsTrue(Target target) {
        String message = Platform.format("retainAll(%s) should return true", target);
        assertTrue(message, collection.retainAll(target.toRetain));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. 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) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. 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) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java

        assertTrue(
            "containsDuplicates.retainAll(subset) should return true",
            collection.retainAll(MinimalCollection.of(e2())));
        expectContents(e2());
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testRetainAll_countIgnored() {
        resetContainer(getSubjectGenerator().create(e0(), e2(), e1(), e0()));
        assertTrue(getList().retainAll(Arrays.asList(e0(), e1())));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java

        assertTrue(
            "containsDuplicates.retainAll(subset) should return true",
            collection.retainAll(MinimalCollection.of(e2())));
        expectContents(e2());
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testRetainAll_countIgnored() {
        resetContainer(getSubjectGenerator().create(e0(), e2(), e1(), e0()));
        assertTrue(getList().retainAll(Arrays.asList(e0(), e1())));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. 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();
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  8. 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()) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

          return standardRemove(object);
        }
    
        @Override
        public boolean removeAll(Collection<?> collection) {
          return standardRemoveAll(collection);
        }
    
        @Override
        public boolean retainAll(Collection<?> collection) {
          return standardRetainAll(collection);
        }
    
        @Override
        public Object[] toArray() {
          return standardToArray();
        }
    
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  10. 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) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3K bytes
    - Viewed (0)
Back to top