다음을 통해 공유


LinkedList.ListIterator(Int32) Method

Definition

Returns a list-iterator of 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 override Java.Util.IListIterator ListIterator (int index);
[<Android.Runtime.Register("listIterator", "(I)Ljava/util/ListIterator;", "GetListIterator_IHandler")>]
override this.ListIterator : int -> Java.Util.IListIterator

Parameters

index
Int32

index of the first element to be returned from the list-iterator (by a call to next)

Returns

a ListIterator of the elements in this list (in proper sequence), starting at the specified position in the list

Implements

Attributes

Exceptions

if location size()

Remarks

Returns a list-iterator of the elements in this list (in proper sequence), starting at the specified position in the list. Obeys the general contract of List.listIterator(int).

The list-iterator is fail-fast: if the list is structurally modified at any time after the Iterator is created, in any way except through the list-iterator's own remove or add methods, the list-iterator will throw a ConcurrentModificationException. Thus, in the face of concurrent modification, the iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future.

Java documentation for java.util.LinkedList.listIterator(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

See also