Java.Util.IIterator
An iterator over a sequence of objects, such as a collection.

See Also: IIterator Members

Syntax

[Android.Runtime.Register("java/util/Iterator", "", "Java.Util.IIteratorInvoker")]
public interface IIterator : Android.Runtime.IJavaObject, IDisposable

Remarks

An iterator over a sequence of objects, such as a collection.

If a collection has been changed since the iterator was created, methods next and hasNext() may throw a ConcurrentModificationException. It is not possible to guarantee that this mechanism works in all cases of unsynchronized concurrent modification. It should only be used for debugging purposes. Iterators with this behavior are called fail-fast iterators.

Implementing Java.Lang.IIterable and returning an Iterator allows your class to be used as a collection with the enhanced for loop.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1