다음을 통해 공유


IIterator.Remove Method

Definition

Removes from the underlying collection the last element returned by this iterator (optional operation).

[Android.Runtime.Register("remove", "()V", "GetRemoveHandler:Java.Util.IIteratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Remove ();
[<Android.Runtime.Register("remove", "()V", "GetRemoveHandler:Java.Util.IIteratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Remove : unit -> unit
Attributes

Exceptions

if removing is not supported by the collection being iterated.

if next has not been called, or remove has already been called after the last call to next.

Remarks

Removes from the underlying collection the last element returned by this iterator (optional operation). This method can be called only once per call to #next.

The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.

The behavior of an iterator is unspecified if this method is called after a call to the #forEachRemaining forEachRemaining method.

Java documentation for java.util.Iterator.remove().

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