Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for removeAll (0.22 sec)

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

          return get((K) key).remove(value);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Collection<V2> removeAll(@CheckForNull Object key) {
          return transform((K) key, fromMultimap.removeAll(key));
        }
    
        @Override
        public Collection<V2> replaceValues(@ParametricNullness K key, Iterable<? extends V2> values) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multisets.java

       * Iterables.frequency(occurrencesToRemove, e))}.
       *
       * <p>This is <i>not</i> the same as {@code multisetToModify.} {@link Multiset#removeAll
       * removeAll}{@code (occurrencesToRemove)}, which removes all occurrences of elements that appear
       * in {@code occurrencesToRemove}. However, this operation <i>is</i> equivalent to, albeit
    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)
  3. android/guava/src/com/google/common/collect/Sets.java

    public final class Sets {
      private Sets() {}
    
      /**
       * {@link AbstractSet} substitute without the potentially-quadratic {@code removeAll}
       * implementation.
       */
      abstract static class ImprovedAbstractSet<E extends @Nullable Object> extends AbstractSet<E> {
        @Override
        public boolean removeAll(Collection<?> c) {
          return removeAllImpl(this, c);
        }
    
        @Override
        public boolean retainAll(Collection<?> c) {
    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)
  4. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

       *
       * <p>This is essentially the same as {@code
       * TreeRangeSet.create(this).removeAll(other.complement())} except it returns an {@code
       * ImmutableRangeSet}.
       *
       * @since 21.0
       */
      public ImmutableRangeSet<C> intersection(RangeSet<C> other) {
        RangeSet<C> copy = TreeRangeSet.create(this);
        copy.removeAll(other.complement());
        return copyOf(copy);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

                return true;
              }
            }
            return false;
          }
        }
    
        @Override
        public boolean removeAll(Collection<?> c) {
          try {
            return super.removeAll(checkNotNull(c));
          } catch (UnsupportedOperationException e) {
            Set<K> toRemove = Sets.newHashSet();
            for (Entry<K, V> entry : map().entrySet()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        }.test();
      }
    
      public void testRemoveAll() {
        List<String> list = newArrayList("a", "b", "c", "d", "e");
        assertTrue(Iterators.removeAll(list.iterator(), newArrayList("b", "d", "f")));
        assertEquals(newArrayList("a", "c", "e"), list);
        assertFalse(Iterators.removeAll(list.iterator(), newArrayList("x", "y", "z")));
        assertEquals(newArrayList("a", "c", "e"), list);
      }
    
      public void testRemoveIf() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    	return errs
    }
    
    func (s *xlStorage) cleanupTrashImmediateCallers(ctx context.Context) {
    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case entry := <-s.immediatePurge:
    			removeAll(entry)
    		}
    	}
    }
    
    const almostFilledPercent = 0.05
    
    func (s *xlStorage) diskAlmostFilled() bool {
    	info, err := s.diskInfoCache.Get()
    	if err != nil {
    		return false
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final ImmutableSet<V> removeAll(@CheckForNull Object key) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the multimap unmodified.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final ImmutableList<V> removeAll(@CheckForNull Object key) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the multimap unmodified.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterators.java

       * @param elementsToRemove the elements to remove
       * @return {@code true} if any element was removed from {@code iterator}
       */
      @CanIgnoreReturnValue
      public static boolean removeAll(Iterator<?> removeFrom, Collection<?> elementsToRemove) {
        checkNotNull(elementsToRemove);
        boolean result = false;
        while (removeFrom.hasNext()) {
          if (elementsToRemove.contains(removeFrom.next())) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top