Class 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 java.lang.Object
    Class for storing a value along with its expiration information and other information.
    Author:
    Garret Wilson
    • Constructor Summary

      Constructors 
      Constructor Description
      Data​(VV value)
      Value constructor.
    • Constructor Detail

      • Data

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

      • getCachedTime

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

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