Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for removeAllImpl (0.22 sec)

  1. android/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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 46.6K bytes
    - Viewed (0)
  2. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  3. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  4. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 48K bytes
    - Viewed (0)
  5. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (0)
  6. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 165.9K bytes
    - Viewed (0)
Back to top