Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 233 for containsKey (0.18 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava/src/com/google/common/collect/Synchronized.java

        public boolean isEmpty() {
          synchronized (mutex) {
            return delegate().isEmpty();
          }
        }
    
        @Override
        public boolean containsKey(@Nullable Object key) {
          synchronized (mutex) {
            return delegate().containsKey(key);
          }
        }
    
        @Override
        public boolean containsValue(@Nullable Object value) {
          synchronized (mutex) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 56.9K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/CompactLinkedHashMap.java

     * maintained with a doubly linked list through the entries. All optional operations (put and
     * remove) are supported. Null keys and values are supported.
     *
     * <p>{@code containsKey(k)}, {@code put(k, v)} and {@code remove(k)} are all (expected and
     * amortized) constant time operations. Expected in the hashtable sense (depends on the hash
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  3. 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)
  4. android/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: Sat Aug 09 01:14:59 GMT 2025
    - 35.7K bytes
    - Click Count (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to Top