Package javax.cache

Interface Cache.Entry<K,​V>

  • All Known Subinterfaces:
    Cache.MutableEntry<K,​V>
    All Known Implementing Classes:
    CacheEntry
    Enclosing interface:
    Cache<K,​V>

    public static interface Cache.Entry<K,​V>
    A cache entry (key-value pair).
    • Method Detail

      • getKey

        K getKey()
        Returns the key corresponding to this entry.
        Returns:
        the key corresponding to this entry
      • getValue

        V getValue()
        Returns the value stored in the cache when this entry was created.
        Returns:
        the value corresponding to this entry