다음을 통해 공유


HashSet.Spliterator Method

Definition

Creates a <em>late-binding</em> and <em>fail-fast</em> Spliterator over the elements in this set.

[Android.Runtime.Register("spliterator", "()Ljava/util/Spliterator;", "GetSpliteratorHandler", ApiSince=24)]
public virtual Java.Util.ISpliterator Spliterator ();
[<Android.Runtime.Register("spliterator", "()Ljava/util/Spliterator;", "GetSpliteratorHandler", ApiSince=24)>]
abstract member Spliterator : unit -> Java.Util.ISpliterator
override this.Spliterator : unit -> Java.Util.ISpliterator

Returns

a Spliterator over the elements in this set

Implements

Attributes

Remarks

Creates a <em>late-binding</em> and <em>fail-fast</em> Spliterator over the elements in this set.

The Spliterator reports Spliterator#SIZED and Spliterator#DISTINCT. Overriding implementations should document the reporting of additional characteristic values.

Added in 1.8.

Java documentation for java.util.HashSet.spliterator().

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