Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 80 for retainAll (0.07 sec)

  1. guava/src/com/google/common/collect/TreeRangeMap.java

              @Override
              public boolean remove(@CheckForNull Object o) {
                return SubRangeMapAsMap.this.remove(o) != null;
              }
    
              @Override
              public boolean retainAll(Collection<?> c) {
                return removeEntryIf(compose(not(in(c)), Maps.<Range<K>>keyFunction()));
              }
            };
          }
    
          @Override
          public Set<Entry<Range<K>, V>> entrySet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

        }
        if (intersect(features, requirements.getAbsentFeatures())) {
          if (logger.isLoggable(FINER)) {
            Set<Feature<?>> unwantedFeatures = copyToSet(requirements.getAbsentFeatures());
            unwantedFeatures.retainAll(features);
            logger.finer(
                Platform.format(
                    "%s: skipping because these features are present: %s", method, unwantedFeatures));
          }
          return false;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. 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(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ForwardingSortedSetTest.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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ForwardingSetTest.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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

        assertFalse(multimap().containsEntry(k0(), v0()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRetainAllPropagatesToMultimap() {
        multimap().entries().retainAll(singleton(mapEntry(k0(), v0())));
        assertEquals(getSubjectGenerator().create(mapEntry(k0(), v0())), multimap());
        assertEquals(1, multimap().size());
        assertTrue(multimap().containsEntry(k0(), v0()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        } catch (UnsupportedOperationException expected) {
        }
        assertCollectionsAreEquivalent(copy, collection);
    
        try {
          collection.retainAll(siblingCollection);
          fail("retainAll succeeded on unmodifiable collection");
        } catch (UnsupportedOperationException expected) {
        }
        assertCollectionsAreEquivalent(copy, collection);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  8. android/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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

       */
      @Deprecated
      public static <T> Set<T> intersection(Set<? extends T> set1, Set<? extends T> set2) {
        Set<T> result = copyToSet(set1);
        result.retainAll(set2);
        return result;
      }
    
      private FeatureUtil() {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 05 22:05:05 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Maps.java

              }
            }
            return map().keySet().removeAll(toRemove);
          }
        }
    
        @Override
        public boolean retainAll(Collection<?> c) {
          try {
            return super.retainAll(checkNotNull(c));
          } catch (UnsupportedOperationException e) {
            Set<K> toRetain = newHashSet();
            for (Entry<K, V> entry : map().entrySet()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
Back to top