Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getIfCached (0.14 sec)

  1. android/guava/src/com/google/common/graph/MapRetrievalCache.java

        checkNotNull(key);
        V value = getIfCached(key);
        if (value != null) {
          return value;
        }
    
        value = getWithoutCaching(key);
        if (value != null) {
          addToCache((K) key, value);
        }
        return value;
      }
    
      // Internal methods (package-visible, but treat as only subclass-visible)
    
      @Override
      @CheckForNull
      V getIfCached(@CheckForNull Object key) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/MapRetrievalCache.java

        checkNotNull(key);
        V value = getIfCached(key);
        if (value != null) {
          return value;
        }
    
        value = getWithoutCaching(key);
        if (value != null) {
          addToCache((K) key, value);
        }
        return value;
      }
    
      // Internal methods (package-visible, but treat as only subclass-visible)
    
      @Override
      @CheckForNull
      V getIfCached(@CheckForNull Object key) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/MapIteratorCache.java

        return backingMap.remove(key);
      }
    
      final void clear() {
        clearCache();
        backingMap.clear();
      }
    
      @CheckForNull
      V get(Object key) {
        checkNotNull(key);
        V value = getIfCached(key);
        // TODO(b/192579700): Use a ternary once it no longer confuses our nullness checker.
        if (value == null) {
          return getWithoutCaching(key);
        } else {
          return value;
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 4.7K bytes
    - Viewed (0)
Back to top