Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 78 for retainAll (0.07 seconds)

  1. 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);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  2. 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);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

            @Override
            public boolean removeAll(Collection<?> c) {
              return delegate.keySet().removeAll(c);
            }
    
            @Override
            public boolean retainAll(Collection<?> c) {
              return delegate.keySet().retainAll(c);
            }
          };
        }
    
        @Override
        public Collection<V> values() {
          return new ForwardingCollection<V>() {
            @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/FilteredEntryMultimap.java

            }
    
            @Override
            public boolean removeAll(Collection<?> c) {
              return removeEntriesIf(Maps.keyPredicateOnEntries(in(c)));
            }
    
            @Override
            public boolean retainAll(Collection<?> c) {
              return removeEntriesIf(Maps.keyPredicateOnEntries(not(in(c))));
            }
    
            @Override
            public boolean remove(@Nullable Object o) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

            @Override
            public boolean removeAll(Collection<?> c) {
              return delegate.keySet().removeAll(c);
            }
    
            @Override
            public boolean retainAll(Collection<?> c) {
              return delegate.keySet().retainAll(c);
            }
          };
        }
    
        @Override
        public Collection<V> values() {
          return new ForwardingCollection<V>() {
            @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  6. android/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();
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jul 16 17:42:14 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ForwardingCollection.java

      }
    
      /**
       * A sensible definition of {@link #retainAll} in terms of {@link #iterator}, using the iterator's
       * {@code remove} method. If you override {@link #iterator}, you may wish to override {@link
       * #retainAll} to forward to this implementation.
       *
       * @since 7.0
       */
      protected boolean standardRetainAll(Collection<?> collection) {
        return Iterators.retainAll(iterator(), collection);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/ForwardingCollection.java

      }
    
      /**
       * A sensible definition of {@link #retainAll} in terms of {@link #iterator}, using the iterator's
       * {@code remove} method. If you override {@link #iterator}, you may wish to override {@link
       * #retainAll} to forward to this implementation.
       *
       * @since 7.0
       */
      protected boolean standardRetainAll(Collection<?> collection) {
        return Iterators.retainAll(iterator(), collection);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  9. 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()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 30.4K bytes
    - Click Count (0)
  10. 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();
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jul 16 17:42:14 GMT 2025
    - 7.4K bytes
    - Click Count (0)
Back to Top