LruCache
Static library version of android.util.LruCache
. Used to write apps that run on API levels prior to 12. When running on API level 12 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview.
Parameters
for caches that do not override sizeOf, this is the maximum number of entries in the cache. For all other caches, this is the maximum sum of the sizes of the entries in this cache.
Constructors
Functions
Returns the number of times create returned a value.
Clear the cache, calling entryRemoved on each removed entry.
Returns the number of values that have been evicted.
Returns a mutable copy of the current contents of the cache, ordered from least recently accessed to most recently accessed.
Remove the eldest entries until the total of remaining entries is at or below the requested size.