public static class BasicGpuResourceCache.CacheEntry extends java.lang.Object implements Cacheable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
resource |
protected long |
resourceSize |
protected java.lang.String |
resourceType |
Constructor and Description |
---|
CacheEntry(java.lang.Object resource,
java.lang.String resourceType) |
CacheEntry(java.lang.Object resource,
java.lang.String resourceType,
long size) |
Modifier and Type | Method and Description |
---|---|
long |
getSizeInBytes()
Retrieves the approximate size of this object in bytes.
|
protected final java.lang.Object resource
protected long resourceSize
protected final java.lang.String resourceType
public CacheEntry(java.lang.Object resource, java.lang.String resourceType)
public CacheEntry(java.lang.Object resource, java.lang.String resourceType, long size)
public long getSizeInBytes()
Cacheable
getSizeInBytes
in interface Cacheable
Cacheable
object's size in bytes