Udostępnij za pośrednictwem


Spliterators.Iterator(ISpliterator) Method

Definition

Creates an Iterator from a Spliterator.

[Android.Runtime.Register("iterator", "(Ljava/util/Spliterator;)Ljava/util/Iterator;", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.IIterator? Iterator (Java.Util.ISpliterator? spliterator);
[<Android.Runtime.Register("iterator", "(Ljava/util/Spliterator;)Ljava/util/Iterator;", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member Iterator : Java.Util.ISpliterator -> Java.Util.IIterator

Parameters

spliterator
ISpliterator

The spliterator

Returns

An iterator

Attributes

Remarks

Creates an Iterator from a Spliterator.

Traversal of elements should be accomplished through the iterator. The behaviour of traversal is undefined if the spliterator is operated after the iterator is returned.

Java documentation for java.util.Spliterators.iterator(java.util.Spliterator<? extends T>).

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