Class Cache.Data<VV>

java.lang.Object
com.globalmentor.cache.Cache.Data<VV>
Type Parameters:
VV - The type of value stored in the cache.
Direct Known Subclasses:
AbstractFileCache.FileData
Enclosing interface:
Cache<Q,V>

public static class Cache.Data<VV> extends Object
Class for storing a value along with its expiration information and other information.
Author:
Garret Wilson
  • Constructor Details

    • Data

      public Data(VV value)
      Value constructor.
      Parameters:
      value - The value to store.
  • Method Details

    • getCachedTime

      public long getCachedTime()
      Returns:
      The time the cached information was created.
    • getValue

      public VV getValue()
      Returns:
      The value being stored.