Langue

CopyOnWriteArrayList.Set(Int32, Object) Method

Definition

Replaces the element at the specified position in this list with the specified element.

[Android.Runtime.Register("set", "(ILjava/lang/Object;)Ljava/lang/Object;", "GetSet_ILjava_lang_Object_Handler")]
public virtual Java.Lang.Object? Set(int index, Java.Lang.Object? element);
[<Android.Runtime.Register("set", "(ILjava/lang/Object;)Ljava/lang/Object;", "GetSet_ILjava_lang_Object_Handler")>]
abstract member Set : int * Java.Lang.Object -> Java.Lang.Object
override this.Set : int * Java.Lang.Object -> Java.Lang.Object

Parameters

index
Int32

index of the element to replace

element
Object

element to be stored at the specified position

Returns

the element previously at the specified position

Implements

Attributes

Remarks

Replaces the element at the specified position in this list with the specified element.

Java reference for java.util.concurrent.CopyOnWriteArrayList.set.

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