- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 623 for Remove (0.23 sec)
-
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
} } /** * Removes a number of occurrences of the specified element from this multiset. If the multiset * contains fewer than this number of occurrences to begin with, all occurrences will be removed. * * @param element the element whose occurrences should be removed * @param occurrences the number of occurrences of the element to remove
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 21.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java
assertTrue(getMap().remove(k0(), v0())); expectMissing(e0()); } @MapFeature.Require(SUPPORTS_REMOVE) public void testRemove_supportedPresentKeyWrongValue() { assertFalse(getMap().remove(k0(), v3())); expectUnchanged(); } @MapFeature.Require(SUPPORTS_REMOVE) public void testRemove_supportedWrongKeyPresentValue() { assertFalse(getMap().remove(k3(), v0())); expectUnchanged(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/PeekingIteratorTest.java
/* Should complain on attempt to remove() after peek(). */ assertThrows(IllegalStateException.class, () -> peekingIterator.remove()); assertEquals( "After remove() throws exception, peek should still be ok", "B", peekingIterator.peek()); /* Should recover to be able to remove() after next(). */ assertEquals("B", peekingIterator.next()); peekingIterator.remove();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java
assertEquals("old count", originalCount, getMultiset().remove(e0(), 0)); expectUnchanged(); } @CollectionSize.Require(absent = ZERO) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testRemove_occurrences_present() { assertEquals( "multiset.remove(present, 2) didn't return the old count", 1, getMultiset().remove(e0(), 2)); assertFalse(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.9K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_pv1_an.py
client = TestClient(app) return client # TODO: remove when deprecating Pydantic v1 @needs_pydanticv1 def test_post_body_form(client: TestClient): response = client.post("/login/", data={"username": "Foo", "password": "secret"}) assert response.status_code == 200 assert response.json() == {"username": "Foo", "password": "secret"} # TODO: remove when deprecating Pydantic v1 @needs_pydanticv1
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java
assertThrows(UnsupportedOperationException.class, () -> collection.remove(e0())); expectUnchanged(); assertTrue("remove(present) should not remove the element", collection.contains(e0())); } @CollectionFeature.Require(absent = SUPPORTS_REMOVE) public void testRemove_unsupportedNotPresent() { try { assertFalse( "remove(notPresent) should return false or throw UnsupportedOperationException",
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
} @Override public void remove() { iterator.remove(); } }; } /** * Returns an iterator that cycles indefinitely over the provided elements. * * <p>The returned iterator supports {@code remove()}. After {@code remove()} is called, * subsequent cycles omit the removed element, but {@code elements} does not change. The
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
recurse(level + 1); } } } private void compareResultsForThisListOfStimuli() { int removes = frequency(asList(stimuli), remove); if ((!features.contains(IteratorFeature.SUPPORTS_REMOVE) && removes > 1) || (stimuli.length >= 5 && removes > 2)) { // removes are the most expensive thing to test, since they often throw exceptions with stack // traces, so we test them a bit less aggressively
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 20.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
@MapFeature.Require(SUPPORTS_REMOVE) public void testRemoveAbsent() { assertFalse(multimap().remove(k0(), v1())); expectUnchanged(); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_REMOVE) public void testRemovePresent() { assertTrue(multimap().remove(k0(), v0())); assertFalse(multimap().containsEntry(k0(), v0())); expectMissing(e0());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
@MapFeature.Require(SUPPORTS_REMOVE) public void testRemoveAbsent() { assertFalse(multimap().remove(k0(), v1())); expectUnchanged(); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_REMOVE) public void testRemovePresent() { assertTrue(multimap().remove(k0(), v0())); assertFalse(multimap().containsEntry(k0(), v0())); expectMissing(e0());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.6K bytes - Viewed (0)