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