Language

JavaList.Contains Method

Definition

Overloads

Name Description
Contains(Object)

Checks whether the Java list contains an element.

Contains(Object)

Checks whether the Java list contains an element.

Contains(Object)

Checks whether the Java list contains an element.

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

Parameters

item
Object

The element to find.

Returns

true if the list contains the element; otherwise, false.

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

Contains(Object)

Checks whether the Java list contains an element.

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

Parameters

item
Object

The element to find.

Returns

true if the list contains the element; otherwise, false.

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