com.threerings.opengl.util
Class ResourceCache.CachedResource<T>
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.SoftReference<T>
com.threerings.opengl.util.ResourceCache.CachedResource<T>
- Enclosing class:
- ResourceCache
protected static class ResourceCache.CachedResource<T>
- extends SoftReference<T>
Contains a cached resource.
|
Field Summary |
protected File |
_file
The file corresponding to the resource. |
protected long |
_lastModified
The recorded last-modified timestamp. |
|
Method Summary |
boolean |
wasModified()
Determines whether the resource file has been modified since this reference
was created. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_file
protected File _file
- The file corresponding to the resource.
_lastModified
protected long _lastModified
- The recorded last-modified timestamp.
ResourceCache.CachedResource
public ResourceCache.CachedResource(T resource,
File file)
wasModified
public boolean wasModified()
- Determines whether the resource file has been modified since this reference
was created.