public static class FileCache.LastModifiedExpiration<T> extends java.lang.Object implements FileCache.Expiration<T>
Constructor and Description |
---|
LastModifiedExpiration() |
Modifier and Type | Method and 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
|
public boolean isExpired(java.io.File file, java.lang.Long cacheTime, T item)
FileCache.Expiration
isExpired
in interface FileCache.Expiration<T>
file
- the filecacheTime
- the time the item was last cacheditem
- the cached item