Share via


IListIterator.NextIndex Method

Definition

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

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

Returns

the index of the element that would be returned by a subsequent call to next, or list size if the list iterator is at the end of the list

Attributes

Exceptions

if there are no more elements.

Remarks

Returns the index of the element that would be returned by a subsequent call to #next. (Returns list size if the list iterator is at the end of the list.)

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

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