Package org.linuxforhealth.fhir.core
Class CachedObjectHolder<T>
- java.lang.Object
-
- org.linuxforhealth.fhir.core.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 Summary
Constructors Constructor Description CachedObjectHolder(java.lang.String fileName, T cachedObject)
CachedObjectHolder(T cachedObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getCachedObject()
java.lang.String
getFileName()
long
getLastModified()
boolean
isStale()
void
setCachedObject(T cachedObject)
void
setFileName(java.lang.String fileName)
void
setLastModified(long lastModified)
-
-
-
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.
-
-