Class FileCache.LastModifiedExpiration<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isExpired​(java.io.File file, java.lang.Long cacheTime, T item)
      Return true if the item associated with the file has expired, given the last timestamp associated with the item
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LastModifiedExpiration

        public LastModifiedExpiration()
    • Method Detail

      • isExpired

        public boolean isExpired​(java.io.File file,
                                 java.lang.Long cacheTime,
                                 T item)
        Description copied from interface: FileCache.Expiration
        Return true if the item associated with the file has expired, given the last timestamp associated with the item
        Specified by:
        isExpired in interface FileCache.Expiration<T>
        Parameters:
        file - the file
        cacheTime - the time the item was last cached
        item - the cached item
        Returns:
        true if the item should expire