Freigeben über


UnicodeSetIterator.Next Method

Definition

Returns the next element in the set, either a single code point or a string.

[Android.Runtime.Register("next", "()Z", "GetNextHandler", ApiSince=24)]
public virtual bool Next ();
[<Android.Runtime.Register("next", "()Z", "GetNextHandler", ApiSince=24)>]
abstract member Next : unit -> bool
override this.Next : unit -> bool

Returns

true if there was another element in the set and this object contains the element.

Attributes

Remarks

Returns the next element in the set, either a single code point or a string. If there are no more elements in the set, return false. If codepoint == IS_STRING, the value is a string in the string field. Otherwise the value is a single code point in the codepoint field.

The order of iteration is all code points in sorted order, followed by all strings sorted order. codepointEnd is undefined after calling this method. string is undefined unless codepoint == IS_STRING. Do not mix calls to next() and nextRange() without calling reset() between them. The results of doing so are undefined.

<b>Warning: </b>For speed, UnicodeSet iteration does not check for concurrent modification. Do not alter the UnicodeSet while iterating.

Java documentation for android.icu.text.UnicodeSetIterator.next().

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