Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 124 for RemoveAll (0.19 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAllPropagatesToMultimap() {
        assertTrue(multimap().entries().removeAll(Collections.singleton(Helpers.mapEntry(k0(), v0()))));
        expectMissing(Helpers.mapEntry(k0(), v0()));
        assertEquals(getNumElements() - 1, multimap().size());
        assertFalse(multimap().containsEntry(k0(), v0()));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 5.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        } catch (RuntimeException tolerated) {
          // GWT's HashMap.keySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRemoveAllNullFromEmpty() {
        try {
          super.testEntrySetRemoveAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's HashMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

        return delegate.pollLast();
      }
    
      @Override
      public boolean remove(Object object) {
        return delegate.remove(checkValid(object));
      }
    
      @Override
      public boolean removeAll(Collection<?> c) {
        return delegate.removeAll(c);
      }
    
      @Override
      public boolean retainAll(Collection<?> c) {
        return delegate.retainAll(c);
      }
    
      @Override
      public int size() {
        return delegate.size();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/FilteredKeyMultimap.java

          K k = (K) key;
          return keyPredicate.apply(k);
        }
        return false;
      }
    
      @Override
      public Collection<V> removeAll(@CheckForNull Object key) {
        return containsKey(key) ? unfiltered.removeAll(key) : unmodifiableEmptyCollection();
      }
    
      Collection<V> unmodifiableEmptyCollection() {
        if (unfiltered instanceof SetMultimap) {
          return emptySet();
        } else {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

          K k = (K) key;
          return keyPredicate.apply(k);
        }
        return false;
      }
    
      @Override
      public Collection<V> removeAll(@CheckForNull Object key) {
        return containsKey(key) ? unfiltered.removeAll(key) : unmodifiableEmptyCollection();
      }
    
      Collection<V> unmodifiableEmptyCollection() {
        if (unfiltered instanceof SetMultimap) {
          return emptySet();
        } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractSetMultimap.java

       * {@link Set}, instead of the {@link Collection} specified in the {@link Multimap} interface.
       */
      @CanIgnoreReturnValue
      @Override
      public Set<V> removeAll(@CheckForNull Object key) {
        return (Set<V>) super.removeAll(key);
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 4.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

       * returns a {@link SortedSet}, instead of the {@link Collection} specified in the {@link
       * Multimap} interface.
       */
      @CanIgnoreReturnValue
      @Override
      public SortedSet<V> removeAll(@CheckForNull Object key) {
        return (SortedSet<V>) super.removeAll(key);
      }
    
      /**
       * Stores a collection of values with the same key, replacing any existing values for that key.
       * The returned collection is immutable.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

       * returns a {@link SortedSet}, instead of the {@link Collection} specified in the {@link
       * Multimap} interface.
       */
      @CanIgnoreReturnValue
      @Override
      public SortedSet<V> removeAll(@CheckForNull Object key) {
        return (SortedSet<V>) super.removeAll(key);
      }
    
      /**
       * Stores a collection of values with the same key, replacing any existing values for that key.
       * The returned collection is immutable.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SetMultimap.java

     * already in the multimap has no effect. See the {@link Multimap} documentation for information
     * common to all multimaps.
     *
     * <p>The {@link #get}, {@link #removeAll}, and {@link #replaceValues} methods each return a {@link
     * Set} of values, while {@link #entries} returns a {@code Set} of map entries. Though the method
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

    import java.lang.reflect.Method;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Tests for {@code Multiset#remove}, {@code Multiset.removeAll}, and {@code Multiset.retainAll} not
     * already covered by the corresponding Collection testers.
     *
     * @author Jared Levy
     */
    @GwtCompatible(emulated = true)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
Back to top