JavaList.Set(Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Replaces the element at a position in the Java list.
public virtual Java.Lang.Object? Set(int location, Java.Lang.Object item);
abstract member Set : int * Java.Lang.Object -> Java.Lang.Object
override this.Set : int * Java.Lang.Object -> Java.Lang.Object
Parameters
- location
- Int32
The position of the element to replace.
- item
- Object
The replacement element.
Returns
The element previously at the specified position.
Remarks
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.