PathIterator.Remove Method

Definition

Removes from the underlying collection the last element returned by this iterator.

public void Remove();
abstract member Remove : unit -> unit
override this.Remove : unit -> unit

Implements

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. This optional operation can be called only once after each call to next.

The iterator's behavior is unspecified if the underlying collection is modified during iteration other than through this method, unless an overriding class specifies a concurrent-modification policy.

The behavior is also unspecified if this method is called after forEachRemaining.

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