Udostępnij za pośrednictwem


LruCache.Put(Object, Object) Method

Definition

Caches value for key.

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

Parameters

key
Object
value
Object

Returns

the previous value mapped by key.

Attributes

Remarks

Caches value for key. The value is moved to the head of the queue.

Java documentation for android.util.LruCache.put(K, V).

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