- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for getValueForNullKey (0.15 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java
getValueForNullKey(), getMap() .computeIfAbsent( getKeyForNullValue(), k -> { assertEquals(getKeyForNullValue(), k); return getValueForNullKey(); })); expectReplacement(entry(getKeyForNullValue(), getValueForNullKey())); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java
getValueForNullKey(), getMap() .computeIfAbsent( getKeyForNullValue(), k -> { assertEquals(getKeyForNullValue(), k); return getValueForNullKey(); })); expectReplacement(entry(getKeyForNullValue(), getValueForNullKey())); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 6.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java
public void testRemoveAllNullKeyPresent() { initMultimapWithNullKey(); assertContentsAnyOrder(multimap().removeAll(null), getValueForNullKey()); expectMissing(mapEntry((K) null, getValueForNullKey())); } @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_ANY_NULL_QUERIES}) public void testRemoveAllNullKeyAbsent() { assertEmpty(multimap().removeAll(null));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java
@MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_VALUES}) @CollectionSize.Require(absent = ZERO) public void testCompute_presentNullToPresentNonnull() { initMapWithNullValue(); V value = getValueForNullKey(); assertEquals( "Map.compute(presentMappedToNull, functionReturningValue) should return new value", value, getMap() .compute( getKeyForNullValue(),
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 7.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
@MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS}) public void testRemoveNullKeyPresent() { initMultimapWithNullKey(); assertTrue(multimap().remove(null, getValueForNullKey())); expectMissing(mapEntry((K) null, getValueForNullKey())); assertGet(getKeyForNullValue(), ImmutableList.<V>of()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java
assertEquals( "remove(null) should return the associated value", getValueForNullKey(), getMap().remove(null)); assertEquals( "remove(present) should decrease a map's size by one.", initialSize - 1, getMap().size()); expectMissing(entry(null, getValueForNullKey())); } @MapFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 5.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java
} @MapFeature.Require(ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testGet_nullContained() { initMapWithNullKey(); assertEquals("get(null) should return the associated value", getValueForNullKey(), get(null)); } public void testGet_wrongType() { try { assertNull("get(wrongType) should return null or throw", getMap().get(WrongType.VALUE)); } catch (ClassCastException tolerated) { }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
int nullKeyLocation = getNullLocation(); Entry<K, V> oldEntry = array[nullKeyLocation]; array[nullKeyLocation] = entry(null, oldEntry.getValue()); return array; } protected V getValueForNullKey() { return getEntryNullReplaces().getValue(); } protected K getKeyForNullValue() { return getEntryNullReplaces().getKey(); } private Entry<K, V> getEntryNullReplaces() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 7.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java
@CollectionSize.Require(absent = ZERO) public void testGetOrDefault_presentNull() { initMapWithNullKey(); assertEquals( "getOrDefault(null, default) should return the associated value", getValueForNullKey(), getMap().getOrDefault(null, v3())); } @MapFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testGetOrDefault_presentMappedToNull() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java
v3(), getMap() .computeIfPresent( null, (k, v) -> { assertNull(k); assertEquals(getValueForNullKey(), v); return v3(); })); Entry<K, V>[] expected = createArrayWithNullKey(); expected[getNullLocation()] = entry(null, v3()); expectContents(expected); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.1K bytes - Viewed (0)