Share via


IListIterator.Previous Method

Definition

Returns the previous element in the list and moves the cursor position backwards.

[Android.Runtime.Register("previous", "()Ljava/lang/Object;", "GetPreviousHandler:Java.Util.IListIteratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? Previous ();
[<Android.Runtime.Register("previous", "()Ljava/lang/Object;", "GetPreviousHandler:Java.Util.IListIteratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Previous : unit -> Java.Lang.Object

Returns

the previous element in the list

Attributes

Exceptions

if there are no previous elements.

Remarks

Returns the previous element in the list and moves the cursor position backwards. This method may be called repeatedly to iterate through the list backwards, or intermixed with calls to #next to go back and forth. (Note that alternating calls to next and previous will return the same element repeatedly.)

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

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