- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 79 for k3 (0.01 seconds)
-
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java
} @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) public void testPutIfAbsent_nullValueUnsupported() { assertThrows(NullPointerException.class, () -> getMap().putIfAbsent(k3(), null)); expectUnchanged(); expectNullValueMissingWhenNullValuesUnsupported( "Should not contain null value after unsupported put(key, null)"); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 4.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java
@CollectionSize.Require(absent = ZERO) public void testContainsKeyYes() { assertTrue(multimap().containsKey(k0())); } public void testContainsKeyNo() { assertFalse(multimap().containsKey(k3())); } public void testContainsKeysFromKeySet() { for (K k : multimap().keySet()) { assertTrue(multimap().containsKey(k)); } } public void testContainsKeyAgreesWithGet() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java
} @CollectionSize.Require(absent = CollectionSize.ZERO) @MapFeature.Require(ALLOWS_NULL_VALUES) public void testHashCode_containingNullValue() { Entry<K, V> entryWithNull = entry(k3(), null); runEntryWithNullTest(entryWithNull); } private void runEntryWithNullTest(Entry<K, V> entryWithNull) { Collection<Entry<K, V>> entries = getSampleEntries(getNumEntries() - 1);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java
public class MultimapRemoveAllTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { @MapFeature.Require(SUPPORTS_REMOVE) public void testRemoveAllAbsentKey() { assertEmpty(multimap().removeAll(k3())); expectUnchanged(); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_REMOVE) public void testRemoveAllPresentKey() { assertContentsAnyOrder(multimap().removeAll(k0()), v0());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") public class MultimapGetTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { public void testGetEmpty() { Collection<V> result = multimap().get(k3()); assertEmpty(result); assertEquals(0, result.size()); } @CollectionSize.Require(absent = ZERO) public void testGetNonEmpty() { Collection<V> result = multimap().get(k0());Created: Fri Dec 26 12:43:10 GMT 2025 - 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/MapPutTester.java
private Entry<K, V> presentKeyNullValueEntry; @Override public void setUp() throws Exception { super.setUp(); nullKeyEntry = entry(null, v3()); nullValueEntry = entry(k3(), null); nullKeyValueEntry = entry(null, null); presentKeyNullValueEntry = entry(k0(), null); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 9.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java
} @CollectionSize.Require(absent = CollectionSize.ZERO) @MapFeature.Require(ALLOWS_NULL_VALUES) public void testHashCode_containingNullValue() { Entry<K, V> entryWithNull = entry(k3(), null); runEntryWithNullTest(entryWithNull); } private void runEntryWithNullTest(Entry<K, V> entryWithNull) { Collection<Entry<K, V>> entries = getSampleEntries(getNumEntries() - 1);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.1K bytes - Click Count (0) -
guava/src/com/google/common/graph/MapRetrievalCache.java
return entry.value; } entry = cacheEntry2; if (entry != null && entry.key == key) { // Promote second cache entry to first so the access pattern // [K1, K2, K1, K3, K1, K4...] still hits the cache half the time. addToCache(entry); return entry.value; } return null; } @Override void clearCache() { super.clearCache();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Jan 18 02:54:30 GMT 2025 - 7.8K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java
.addValue(Arrays.asList()) .add(SHORT_NAME, Collections.singletonMap("k1", "v1")) .add(LONG_NAME, Collections.singletonMap("k2", "v2")) .addValue(Collections.singletonMap("k3", "v3")) .addValue(Collections.emptyMap()) .addValue(null) .add(SHORT_NAME, Optional.of("1")) .add(LONG_NAME, Optional.of("1")) .add(SHORT_NAME, Optional.absent())
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.4K bytes - Click Count (0)