com.threerings.opengl.util
Class ResourceCache.CachedResource<T>

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.SoftReference<T>
          extended by 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.
 
Constructor Summary
ResourceCache.CachedResource(T resource, File file)
           
 
Method Summary
 boolean wasModified()
          Determines whether the resource file has been modified since this reference was created.
 
Methods inherited from class java.lang.ref.SoftReference
get
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_file

protected File _file
The file corresponding to the resource.


_lastModified

protected long _lastModified
The recorded last-modified timestamp.

Constructor Detail

ResourceCache.CachedResource

public ResourceCache.CachedResource(T resource,
                                    File file)
Method Detail

wasModified

public boolean wasModified()
Determines whether the resource file has been modified since this reference was created.