Compartilhar via


CopyOnWriteArrayList.SubList(Int32, Int32) Method

Definition

Returns a view of the portion of this list between fromIndex, inclusive, and toIndex, exclusive.

[Android.Runtime.Register("subList", "(II)Ljava/util/List;", "GetSubList_IIHandler")]
public virtual System.Collections.IList SubList (int fromIndex, int toIndex);
[<Android.Runtime.Register("subList", "(II)Ljava/util/List;", "GetSubList_IIHandler")>]
abstract member SubList : int * int -> System.Collections.IList
override this.SubList : int * int -> System.Collections.IList

Parameters

fromIndex
Int32

low endpoint (inclusive) of the subList

toIndex
Int32

high endpoint (exclusive) of the subList

Returns

a view of the specified range within this list

Implements

Attributes

Remarks

Returns a view of the portion of this list between fromIndex, inclusive, and toIndex, exclusive. The returned list is backed by this list, so changes in the returned list are reflected in this list.

The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is modified in any way other than via the returned list.

Java documentation for java.util.concurrent.CopyOnWriteArrayList.subList(int, int).

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