Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 104 for retainAll (0.35 seconds)

  1. 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)
  2. 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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  3. 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(asList(e0(), e1())));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3K bytes
    - Click Count (0)
  4. 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)
  5. 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)
  6. 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)
  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();
        }
    
    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)
  8. android/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)
  9. 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)
  10. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jul 16 20:34:52 GMT 2025
    - 11.8K bytes
    - Click Count (0)
Back to Top