Langue

CopyOnWriteArrayList.ListIterator Method

Definition

Overloads

Name Description
ListIterator()

Returns a list iterator over the elements in this list (in proper sequence).

ListIterator(Int32)

Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.

ListIterator()

Returns a list iterator over the elements in this list (in proper sequence).

[Android.Runtime.Register("listIterator", "()Ljava/util/ListIterator;", "GetListIteratorHandler")]
public virtual Java.Util.IListIterator ListIterator();
[<Android.Runtime.Register("listIterator", "()Ljava/util/ListIterator;", "GetListIteratorHandler")>]
abstract member ListIterator : unit -> Java.Util.IListIterator
override this.ListIterator : unit -> Java.Util.IListIterator

Returns

a list iterator over the elements in this list (in proper sequence)

Implements

Attributes

Remarks

Returns a list iterator over the elements in this list (in proper sequence).

The returned iterator provides a snapshot of the state of the list when the iterator was constructed. No synchronization is needed while traversing the iterator. The iterator does <em>NOT</em> support the remove, set or add methods.

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

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

ListIterator(Int32)

Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.

[Android.Runtime.Register("listIterator", "(I)Ljava/util/ListIterator;", "GetListIterator_IHandler")]
public virtual Java.Util.IListIterator ListIterator(int index);
[<Android.Runtime.Register("listIterator", "(I)Ljava/util/ListIterator;", "GetListIterator_IHandler")>]
abstract member ListIterator : int -> Java.Util.IListIterator
override this.ListIterator : int -> Java.Util.IListIterator

Parameters

index
Int32

the index at which to start the iteration.

Returns

a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list

Implements

Attributes

Remarks

Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.

The specified index indicates the first element that would be returned by an initial call to next.

An initial call to previous would return the element with the specified index minus one.

The returned iterator provides a snapshot of the state of the list when the iterator was constructed. No synchronization is needed while traversing the iterator. The iterator does <em>NOT</em> support the remove, set or add methods.

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

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