Class CacheableFile

java.lang.Object
java.io.File
org.deltava.util.cache.CacheableFile
All Implemented Interfaces:
Serializable, Comparable<File>, Cacheable

public class CacheableFile extends File implements Cacheable
A utility class to create a cacheable File.
Since:
2.2
Version:
5.0
Author:
Luke
See Also:
  • Constructor Details

    • CacheableFile

      public CacheableFile(File f)
      Creates a cache entry for a File.
      Parameters:
      f - the File
    • CacheableFile

      public CacheableFile(Object key, File f)
      Creates a cache entry for a File with a specific key.
      Parameters:
      key - the key
      f - the File
  • Method Details

    • cacheKey

      public Object cacheKey()
      Description copied from interface: Cacheable
      Returns the cache key for this object. Caches call this method when adding the object.
      Specified by:
      cacheKey in interface Cacheable
      Returns:
      the cache key for the object