Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for removeAllImpl (0.09 sec)

  1. android/guava/src/com/google/common/collect/ForwardingSet.java

       *
       * @since 7.0 (this version overrides the {@code ForwardingCollection} version as of 12.0)
       */
      @Override
      protected boolean standardRemoveAll(Collection<?> collection) {
        return Sets.removeAllImpl(this, checkNotNull(collection)); // for GWT
      }
    
      /**
       * A sensible definition of {@link #equals} in terms of {@link #size} and {@link #containsAll}. If
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractMultiset.java

        return Multisets.addAllImpl(this, elementsToAdd);
      }
    
      @CanIgnoreReturnValue
      @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);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingMultiset.java

       * to forward to this implementation.
       *
       * @since 7.0
       */
      @Override
      protected boolean standardRemoveAll(Collection<?> elementsToRemove) {
        return Multisets.removeAllImpl(this, elementsToRemove);
      }
    
      /**
       * A sensible definition of {@link #retainAll} in terms of the {@code retainAll} method of {@link
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingMultiset.java

       * to forward to this implementation.
       *
       * @since 7.0
       */
      @Override
      protected boolean standardRemoveAll(Collection<?> elementsToRemove) {
        return Multisets.removeAllImpl(this, elementsToRemove);
      }
    
      /**
       * A sensible definition of {@link #retainAll} in terms of the {@code retainAll} method of {@link
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Sets.java

      }
    
      /** Remove each element in an iterable from a set. */
      static boolean removeAllImpl(Set<?> set, Iterator<?> iterator) {
        boolean changed = false;
        while (iterator.hasNext()) {
          changed |= set.remove(iterator.next());
        }
        return changed;
      }
    
      static boolean removeAllImpl(Set<?> set, Collection<?> collection) {
        checkNotNull(collection); // for GWT
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Multisets.java

        if (elements.isEmpty()) {
          return false;
        }
        elements.forEachEntry(self::add);
        return true;
      }
    
      /** An implementation of {@link Multiset#removeAll}. */
      static boolean removeAllImpl(Multiset<?> self, Collection<?> elementsToRemove) {
        Collection<?> collection =
            (elementsToRemove instanceof Multiset)
                ? ((Multiset<?>) elementsToRemove).elementSet()
                : elementsToRemove;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multisets.java

        if (elements.isEmpty()) {
          return false;
        }
        elements.addTo(self);
        return true;
      }
    
      /** An implementation of {@link Multiset#removeAll}. */
      static boolean removeAllImpl(Multiset<?> self, Collection<?> elementsToRemove) {
        Collection<?> collection =
            (elementsToRemove instanceof Multiset)
                ? ((Multiset<?>) elementsToRemove).elementSet()
                : elementsToRemove;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          // Guava issue 1013: AbstractSet and most JDK set implementations are
          // susceptible to quadratic removeAll performance on lists;
          // use a slightly smarter implementation here
          boolean changed = Sets.removeAllImpl((Set<V>) delegate, c);
          if (changed) {
            int newSize = delegate.size();
            totalSize += newSize - oldSize;
            removeIfEmpty();
          }
          return changed;
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Maps.java

          try {
            return super.removeAll(checkNotNull(c));
          } catch (UnsupportedOperationException e) {
            // if the iterators don't support remove
            return Sets.removeAllImpl(this, c.iterator());
          }
        }
    
        @Override
        public boolean retainAll(Collection<?> c) {
          try {
            return super.retainAll(checkNotNull(c));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Maps.java

          try {
            return super.removeAll(checkNotNull(c));
          } catch (UnsupportedOperationException e) {
            // if the iterators don't support remove
            return Sets.removeAllImpl(this, c.iterator());
          }
        }
    
        @Override
        public boolean retainAll(Collection<?> c) {
          try {
            return super.retainAll(checkNotNull(c));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 157.6K bytes
    - Viewed (0)
Back to top