Package gov.nasa.worldwind.cache
Class BasicGpuResourceCache.CacheEntry
- java.lang.Object
-
- gov.nasa.worldwind.cache.BasicGpuResourceCache.CacheEntry
-
- All Implemented Interfaces:
Cacheable
- Enclosing class:
- BasicGpuResourceCache
public static class BasicGpuResourceCache.CacheEntry extends java.lang.Object implements Cacheable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object
resource
protected long
resourceSize
protected java.lang.String
resourceType
-
Constructor Summary
Constructors Constructor Description CacheEntry(java.lang.Object resource, java.lang.String resourceType)
CacheEntry(java.lang.Object resource, java.lang.String resourceType, long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSizeInBytes()
Retrieves the approximate size of this object in bytes.
-
-
-
Method Detail
-
getSizeInBytes
public long getSizeInBytes()
Description copied from interface:Cacheable
Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size for smaller objects, but use approximate values for objects that include such large components that the approximation would produce an error so small that the extra computation would be wasteful.- Specified by:
getSizeInBytes
in interfaceCacheable
- Returns:
- this
Cacheable
object's size in bytes
-
-