Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for retainAll (0.24 sec)

  1. 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  2. 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) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 4.2K bytes
    - Viewed (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
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  4. 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) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  5. 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) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multisets.java

      }
    
      /** An implementation of {@link Multiset#retainAll}. */
      static boolean retainAllImpl(Multiset<?> self, Collection<?> elementsToRetain) {
        checkNotNull(elementsToRetain);
        Collection<?> collection =
            (elementsToRetain instanceof Multiset)
                ? ((Multiset<?>) elementsToRetain).elementSet()
                : elementsToRetain;
    
        return self.elementSet().retainAll(collection);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testRetainAll_collection() {
        List<String> list = newArrayList("a", "b", "c", "d", "e");
        assertTrue(Iterables.retainAll(list, newArrayList("b", "d", "f")));
        assertEquals(newArrayList("b", "d"), list);
        assertFalse(Iterables.retainAll(list, newArrayList("b", "e", "d")));
        assertEquals(newArrayList("b", "d"), list);
      }
    
      public void testRetainAll_iterable() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Collections2.java

      public static <E extends @Nullable Object> Collection<E> filter(
          Collection<E> unfiltered, Predicate<? super E> predicate) {
        if (unfiltered instanceof FilteredCollection) {
          // Support clear(), removeAll(), and retainAll() when filtering a filtered
          // collection.
          return ((FilteredCollection<E>) unfiltered).createCombined(predicate);
        }
    
        return new FilteredCollection<>(checkNotNull(unfiltered), checkNotNull(predicate));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

        @Override
        public boolean removeAll(Collection<?> c) {
          return removeAllImpl(this, c);
        }
    
        @Override
        public boolean retainAll(Collection<?> c) {
          return super.retainAll(checkNotNull(c)); // GWT compatibility
        }
      }
    
      /**
       * Returns an immutable set instance containing the given enum elements. Internally, the returned
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IteratorsTest.java

                      }
    
                      @Override
                      public boolean retainAll(Collection<?> c) {
                        return Iterators.retainAll(iterator(), c);
                      }
                    };
                  }
                })
            .named("ArrayList with Iterators.removeAll and retainAll")
            .withFeatures(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
Back to top