Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for removeExactly (0.07 sec)

  1. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        assertThrows(IllegalArgumentException.class, () -> cms.removeExactly("a", -2));
    
        assertTrue(cms.removeExactly("a", 0));
        assertEquals(2, cms.count("a"));
        assertTrue(cms.removeExactly("c", 0));
        assertEquals(0, cms.count("c"));
    
        assertFalse(cms.removeExactly("a", 4));
        assertEquals(2, cms.count("a"));
        assertTrue(cms.removeExactly("a", 2));
        assertEquals(0, cms.count("a"));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 22:42:14 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * @return the count of the element before the operation; possibly zero
       * @throws IllegalArgumentException if {@code occurrences} is negative
       */
      /*
       * TODO(cpovirk): remove and removeExactly currently accept null inputs only
       * if occurrences == 0. This satisfies both NullPointerTester and
       * CollectionRemoveTester.testRemove_nullAllowed, but it's not clear that it's
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 22:42:14 UTC 2025
    - 22.3K bytes
    - Viewed (0)
Back to top