Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 80 for retainAll (0.07 sec)

  1. 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
    - 167.4K bytes
    - Viewed (0)
  2. 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));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ForwardingNavigableSetTest.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
    - 6.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractMultiset.java

      @Override
      public final boolean removeAll(Collection<?> elementsToRemove) {
        return Multisets.removeAllImpl(this, elementsToRemove);
      }
    
      @CanIgnoreReturnValue
      @Override
      public final boolean retainAll(Collection<?> elementsToRetain) {
        return Multisets.retainAllImpl(this, elementsToRetain);
      }
    
      @Override
      public abstract void clear();
    
      // Views
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 6K bytes
    - Viewed (0)
  5. android/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)
  6. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  7. 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)
  8. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        SortedSet<String> subset = elementSet.subSet("b", "f");
        assertThat(subset).containsExactly("b", "c", "d", "e").inOrder();
    
        assertTrue(subset.retainAll(asList("a", "c")));
        assertThat(elementSet).containsExactly("a", "c", "f").inOrder();
        assertThat(subset).containsExactly("c");
        assertEquals(5, ms.size());
      }
    
      public void testElementSetSubsetClear() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multiset.java

       * Multiset)}.
       *
       * <p>This method refines {@link Collection#retainAll} to further specify that it <b>may not</b>
       * throw an exception in response to any of {@code elements} being null or of the wrong type.
       *
       * @see Multisets#retainOccurrences(Multiset, Multiset)
       */
      @CanIgnoreReturnValue
      @Override
      boolean retainAll(Collection<?> c);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/log/allcommon/EsAbstractBehavior.java

            }
    
            public boolean removeAll(final Collection<?> c) {
                return parent.removeAll(c);
            }
    
            public boolean retainAll(final Collection<?> c) {
                return parent.retainAll(c);
            }
    
            public void clear() {
                parent.clear();
            }
    
            public boolean equals(final Object o) {
                return parent.equals(o);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
Back to top