Interface WeakKeySoftValueLoadingCache.ValueSupplier<K,​V>

  • Type Parameters:
    K - the key type
    V - the value type
    Enclosing class:
    WeakKeySoftValueLoadingCache<K,​V>

    public static interface WeakKeySoftValueLoadingCache.ValueSupplier<K,​V>
    Supplies a value, given a key.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      V get​(K key)
      This supplier is expected to return the same or equal-and-stateless object if called multiple times for the same key, for thread safety.
    • Method Detail

      • get

        @Nullable
        V get​(K key)
        This supplier is expected to return the same or equal-and-stateless object if called multiple times for the same key, for thread safety.
        Parameters:
        key - the cache key
        Returns:
        the value for the provided cache key