Sdílet prostřednictvím


LruCache.Get(Object) Method

Definition

Returns the value for key if it exists in the cache or can be created by #create.

[Android.Runtime.Register("get", "(Ljava/lang/Object;)Ljava/lang/Object;", "")]
public Java.Lang.Object? Get (Java.Lang.Object? key);
[<Android.Runtime.Register("get", "(Ljava/lang/Object;)Ljava/lang/Object;", "")>]
member this.Get : Java.Lang.Object -> Java.Lang.Object

Parameters

key
Object

Returns

Attributes

Remarks

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 head of the queue. This returns null if a value is not cached and cannot be created.

Java documentation for android.util.LruCache.get(K).

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.

Applies to