- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 318 for containsKey (0.16 seconds)
-
guava/src/com/google/common/collect/CompactHashMap.java
} next = CompactHashing.getNext(entry, mask); } while (next != UNSET); return -1; } @Override public boolean containsKey(@Nullable Object key) { Map<K, V> delegate = delegateOrNull(); return (delegate != null) ? delegate.containsKey(key) : indexOf(key) != -1; } @Override public @Nullable V get(@Nullable Object key) { Map<K, V> delegate = delegateOrNull();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 39.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ObjectCountHashMap.java
if (getHash(entry) == hash && Objects.equals(key, keys[next])) { return next; } next = getNext(entry); } return -1; } public boolean containsKey(@Nullable Object key) { return indexOf(key) != -1; } public int get(@Nullable Object key) { int index = indexOf(key); return (index == -1) ? 0 : values[index]; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 14.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
return map; } // Query Operations @Override public int size() { return totalSize; } @Override public boolean containsKey(@Nullable Object key) { return map.containsKey(key); } // Modification Operations @Override public boolean put(@ParametricNullness K key, @ParametricNullness V value) { Collection<V> collection = map.get(key);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Aug 12 15:51:57 GMT 2025 - 46.9K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
return put(key, value); } return null; } } @Override public boolean containsKey(@Nullable Object key) { synchronized (lock) { return cachingHashMap.containsKey(key) && !isExpired(cachingHashMap.get(key)); } } @Override public boolean containsValue(@Nullable Object value) { synchronized (lock) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 21.6K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
private static <K, V> void putEntryWithChecks( SortedMap<K, V> map, Entry<? extends K, ? extends V> entry) { K key = checkNotNull(entry.getKey()); V value = checkNotNull(entry.getValue()); if (map.containsKey(key)) { // When a collision happens, the colliding entry is the first entry // of the tail map. Entry<K, V> previousEntry = map.tailMap(key).entrySet().iterator().next();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 16.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
for (Object key : lookupKeys) { assertThat(cache.asMap().containsKey(key)).isTrue(); } assertThat(cache.asMap().get(extraKey)).isSameInstanceAs(extraValue); assertThat(cache.asMap().containsKey(extraValue)).isFalse(); } public void testBulkLoad_clobberNullKey() throws ExecutionException { Object extraKey = new Object();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 91K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ArrayTable.java
return getEntry(index); } }; } // TODO(lowasser): consider an optimized values() implementation @Override public boolean containsKey(@Nullable Object key) { return keyIndex.containsKey(key); } @Override public @Nullable V get(@Nullable Object key) { Integer index = keyIndex.get(key); if (index == null) { return null;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 13 19:39:21 GMT 2025 - 26.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
builder.build(CacheLoader.from(Suppliers.ofInstance(value))); assertThat(cache.getUnchecked(key)).isSameInstanceAs(value); assertThat(cache.size()).isEqualTo(0); assertThat(cache.asMap().containsKey(key)).isFalse(); } public void testCacheBuilderFrom_string() { CacheBuilder<?, ?> fromString = CacheBuilder.from( "initialCapacity=10,maximumSize=20,concurrencyLevel=30,"
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 20.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/ArrayTable.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 26.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
return map; } // Query Operations @Override public int size() { return totalSize; } @Override public boolean containsKey(@Nullable Object key) { return map.containsKey(key); } // Modification Operations @Override public boolean put(@ParametricNullness K key, @ParametricNullness V value) { Collection<V> collection = map.get(key);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 48.4K bytes - Click Count (0)