Android.Util.LruCache Members

The members of Android.Util.LruCache are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

CreateCount() : int
Returns the number of times LruCache.create(K) returned a value.
EvictAll()
Clear the cache, calling LruCache.entryRemoved(boolean, K, V, V) on each removed entry.
EvictionCount() : int
Returns the number of values that have been evicted.
Get(Java.Lang.Object) : Java.Lang.Object
Documentation for this section has not yet been entered.
HitCount() : int
Returns the number of times LruCache.get(K) returned a value that was already present in the cache.
MaxSize() : int
For caches that do not override LruCache.sizeOf(K, V), this returns the maximum number of entries in the cache.
MissCount() : int
Returns the number of times LruCache.get(K) returned null or required a new value to be created.
Put(Java.Lang.Object, Java.Lang.Object) : Java.Lang.Object
Documentation for this section has not yet been entered.
PutCount() : int
Returns the number of times LruCache.put(K, V) was called.
Remove(Java.Lang.Object) : Java.Lang.Object
Documentation for this section has not yet been entered.
Resize(int)
Sets the size of the cache.
Size() : int
For caches that do not override LruCache.sizeOf(K, V), this returns the number of entries in the cache.
Snapshot() : IDictionary
Returns a copy of the current contents of the cache, ordered from least recently accessed to most recently accessed.
override
ToString() : string
Returns a string containing a concise, human-readable description of this object.
TrimToSize(int)
Remove the eldest entries until the total of remaining entries is at or below the requested size.

Protected Methods

Create(Java.Lang.Object) : Java.Lang.Object
Documentation for this section has not yet been entered.
EntryRemoved(bool, Java.Lang.Object, Java.Lang.Object, Java.Lang.Object)
Documentation for this section has not yet been entered.
SizeOf(Java.Lang.Object, Java.Lang.Object) : int
Documentation for this section has not yet been entered.