Language

JavaList.Add Method

Definition

Overloads

Name Description
Add(JavaList)

Inserts the supplied list's elements at the start of this list.

Add(Object)

Adds an element to the end of the Java list.

Add(Object)

Adds an element to the end of the Java list.

Add(Int32, Object)

Inserts an element at the specified position in the Java list.

Add(JavaList)

Inserts the supplied list's elements at the start of this list.

public virtual bool Add(Android.Runtime.JavaList collection);
abstract member Add : Android.Runtime.JavaList -> bool
override this.Add : Android.Runtime.JavaList -> bool

Parameters

collection
JavaList

The list whose elements are inserted.

Returns

The logical OR of the individual insertion results, or false if no elements were enumerated.

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.

Applies to

Add(Object)

Adds an element to the end of the Java list.

public virtual bool Add(Java.Lang.Object? item);
abstract member Add : Java.Lang.Object -> bool
override this.Add : Java.Lang.Object -> bool

Parameters

item
Object

The element to add.

Returns

true if the call completes.

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.

Applies to

Add(Object)

Adds an element to the end of the Java list.

public int Add(object? item);
abstract member Add : obj -> int
override this.Add : obj -> int

Parameters

item
Object

The element to add.

Returns

The list's count minus one after the call.

Implements

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.

Applies to

Add(Int32, Object)

Inserts an element at the specified position in the Java list.

public virtual bool Add(int index, Java.Lang.Object? item);
abstract member Add : int * Java.Lang.Object -> bool
override this.Add : int * Java.Lang.Object -> bool

Parameters

index
Int32

The position at which to insert the element.

item
Object

The element to insert.

Returns

true if the call completes.

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.

Applies to