- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for removeExactly (0.14 sec)
-
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) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 22:42:14 UTC 2025 - 5.7K bytes - Viewed (0) -
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'sRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 22:42:14 UTC 2025 - 22.3K bytes - Viewed (0)