From b721008dab35dbb2bba30f5b069edf6b2a026a93 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Sat, 15 Aug 2026 09:55:15 -0500 Subject: [PATCH] Document Android.Util LruCache Refs #247 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Android.Util/LruCache.xml | 37 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/docs/xml/Android.Util/LruCache.xml b/docs/xml/Android.Util/LruCache.xml index a004bc423..e186ac406 100644 --- a/docs/xml/Android.Util/LruCache.xml +++ b/docs/xml/Android.Util/LruCache.xml @@ -98,8 +98,7 @@ 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. - - + Initializes a cache with the specified maximum size. @@ -161,9 +160,9 @@ - To be added. + The key for which to compute a value. Called after a cache miss to compute a value for the corresponding key. - To be added. + The computed value, or null if no value can be computed. Called after a cache miss to compute a value for the corresponding key. Returns the computed value or null if no value can be computed. The @@ -211,7 +210,7 @@ Returns the number of times #create(Object) returned a value. - To be added. + The number of times #create returned a value. Returns the number of times #create(Object) returned a value. @@ -342,7 +341,7 @@ Returns the number of values that have been evicted. - To be added. + The number of values that have been evicted. Returns the number of values that have been evicted. @@ -382,10 +381,10 @@ - To be added. + The key to retrieve. Returns the value for key if it exists in the cache or can be created by #create. - To be added. + The cached or newly created value, or null if the value is neither cached nor created. Returns the value for key if it exists in the cache or can be created by #create. If a value was returned, it is moved to the @@ -427,7 +426,7 @@ Returns the number of times #get returned a value that was already present in the cache. - To be added. + The number of times #get returned a value already present in the cache. Returns the number of times #get returned a value that was already present in the cache. @@ -503,7 +502,7 @@ For caches that do not override #sizeOf, this returns the maximum number of entries in the cache. - To be added. + The maximum size in the cache's units. For caches that do not override #sizeOf, this returns the maximum number of entries in the cache. For all other caches, this returns the @@ -545,7 +544,7 @@ Returns the number of times #get returned null or required a new value to be created. - To be added. + The number of times #get returned null or required a new value to be created. Returns the number of times #get returned null or required a new value to be created. @@ -587,8 +586,8 @@ - To be added. - To be added. + The key to associate with . + The value to cache for . Caches value for key. the previous value mapped by key. @@ -629,7 +628,7 @@ Returns the number of times #put was called. - To be added. + The number of times #put was called. Returns the number of times #put was called. @@ -669,7 +668,7 @@ - To be added. + The key whose entry is removed. Removes the entry for key if it exists. the previous value mapped by key. @@ -750,7 +749,7 @@ For caches that do not override #sizeOf, this returns the number of entries in the cache. - To be added. + The cache size in its configured units. For caches that do not override #sizeOf, this returns the number of entries in the cache. For all other caches, this returns the sum of @@ -797,7 +796,7 @@ To be added. Returns the size of the entry for key and value in user-defined units. - To be added. + The entry size in user-defined units. Returns the size of the entry for key and value in user-defined units. The default implementation returns 1 so that size @@ -839,7 +838,7 @@ Returns a copy of the current contents of the cache, ordered from least recently accessed to most recently accessed. - To be added. + A copy of the cache contents, ordered from least recently accessed to most recently accessed. Returns a copy of the current contents of the cache, ordered from least recently accessed to most recently accessed. @@ -946,7 +945,7 @@ Returns a string containing a concise, human-readable description of this object. - To be added. + A string representation of the cache. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.