Class CachedObjectHolder<T>


  • public class CachedObjectHolder<T>
    extends java.lang.Object
    CachedObjectHolder is a generic type which provides common behavior for a file-based object stored within a cache.
    • Constructor Detail

      • CachedObjectHolder

        public CachedObjectHolder​(java.lang.String fileName,
                                  T cachedObject)
      • CachedObjectHolder

        public CachedObjectHolder​(T cachedObject)
    • Method Detail

      • getFileName

        public java.lang.String getFileName()
      • setFileName

        public void setFileName​(java.lang.String fileName)
      • getLastModified

        public long getLastModified()
      • setLastModified

        public void setLastModified​(long lastModified)
      • getCachedObject

        public T getCachedObject()
      • setCachedObject

        public void setCachedObject​(T cachedObject)
      • isStale

        public boolean isStale()
        Returns:
        true iff the file from which the cached object was initially derived has been modified since the object was cached.