Class AbstractFileCache.FileData

java.lang.Object
com.globalmentor.cache.Cache.Data<File>
com.globalmentor.cache.AbstractFileCache.FileData
Enclosing class:
AbstractFileCache<K,Q extends AbstractCache.Query<K>>

public static class AbstractFileCache.FileData extends Cache.Data<File>
Class for storing cached file information. If no modified time is known, this will not influence the staleness determination of cached information.
Author:
Garret Wilson
  • Constructor Details

    • FileData

      public FileData(File file, Date modifiedTime)
      File constructor.
      Parameters:
      file - The file to store.
      modifiedTime - The last known modified time of the resource represented, or null if the last modified time is not known.
  • Method Details

    • getModifiedTime

      public Date getModifiedTime()
      Returns:
      The last known modified time of the resource represented, or null if the last modified time is not known.