Share via


IListIterator.PreviousIndex Method

Definition

Returns the index of the element that would be returned by a subsequent call to #previous.

[Android.Runtime.Register("previousIndex", "()I", "GetPreviousIndexHandler:Java.Util.IListIteratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int PreviousIndex ();
[<Android.Runtime.Register("previousIndex", "()I", "GetPreviousIndexHandler:Java.Util.IListIteratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member PreviousIndex : unit -> int

Returns

the index of the element that would be returned by a subsequent call to previous, or -1 if the list iterator is at the beginning of the list

Attributes

Exceptions

if there are no previous elements.

Remarks

Returns the index of the element that would be returned by a subsequent call to #previous. (Returns -1 if the list iterator is at the beginning of the list.)

Java documentation for java.util.ListIterator.previousIndex().

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