- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 889 for Acquire (0.2 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsKeyTester.java
} @MapFeature.Require(ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testContains_nullContained() { initMapWithNullKey(); assertTrue("containsKey(null) should return true", getMap().containsKey(null)); } @MapFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testContains_keyWithNullValueContained() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 26 21:06:36 GMT 2025 - 3.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java
public class MapPutIfAbsentTester<K, V> extends AbstractMapTester<K, V> { @MapFeature.Require(SUPPORTS_PUT) public void testPutIfAbsent_supportedAbsent() { assertNull( "putIfAbsent(notPresent, value) should return null", getMap().putIfAbsent(k3(), v3())); expectAdded(e3()); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testPutIfAbsent_supportedPresent() { assertEquals(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 16 02:04:51 GMT 2025 - 5.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java
} @CollectionSize.Require(absent = ZERO) @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING) @MapFeature.Require(ALLOWS_NULL_KEYS) public void testToStringWithNullKey() { initMultimapWithNullKey(); testToStringMatchesAsMap(); } @CollectionSize.Require(absent = ZERO) @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING) @MapFeature.Require(ALLOWS_NULL_VALUES)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
throw new AssertionFailedError( "Should not call merge function if key was absent"); })); expectAdded(e3()); } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES}) @CollectionSize.Require(absent = ZERO) public void testMappedToNull() { initMapWithNullValue(); assertEquals( "Map.merge(keyMappedToNull, value, function) should return value", v3(),
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java
assertEquals(2, multimap().size()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_REMOVE) public void testPropagatesRemoveLastElementToMultimap() { Collection<V> result = multimap().get(k0()); assertTrue(result.remove(v0())); assertGet(k0()); } @MapFeature.Require(SUPPORTS_PUT) public void testPropagatesAddToMultimap() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 5.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java
(k, v) -> { throw new AssertionFailedError(); })); expectUnchanged(); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testComputeIfPresent_supportedPresent() { assertEquals( "computeIfPresent(present, function) should return new value", v3(), getMap() .computeIfPresent( k0(),Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 6.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java
k3(), k -> { assertEquals(k3(), k); return v3(); })); expectAdded(e3()); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testComputeIfAbsent_supportedPresent() { assertEquals( "computeIfAbsent(present, function) should return existing value", v0(), getMap()
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 6.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java
} @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES) public void testFind_nullNotContainedAndUnsupported() { try { assertEquals(getMethodName() + "(nullNotPresent) should return -1 or throw", -1, find(null)); } catch (NullPointerException tolerated) { } } @CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java
} @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES) public void testContains_nullNotContainedAndUnsupported() { expectNullMissingWhenNullUnsupported("contains(null) should return false or throw"); } @CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testContains_nonNullWhenNullContained() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.2K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java
expectedEntries.add(mapEntry(entry.getKey(), values().asList().get(index + 1))); } expectContents(expectedEntries); } @MapFeature.Require(SUPPORTS_PUT) @CollectionFeature.Require(KNOWN_ORDER) public void testReplaceAllPreservesOrder() { getMap() .replaceAll( (K k, V v) -> { int index = keys().asList().indexOf(k);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 4.4K bytes - Click Count (0)