Language

UnicodeSet.CompareTo Method

Definition

Overloads

Name Description
CompareTo(UnicodeSet, UnicodeSet+ComparisonStyle)

Compares UnicodeSets, in three different ways.

CompareTo(IIterable)

Compares this set's string iteration with another string iterable.

CompareTo(UnicodeSet)

Compares UnicodeSets, where shorter come first, and otherwise lexicographically (according to the comparison of the first characters that differ).

CompareTo(UnicodeSet, UnicodeSet+ComparisonStyle)

Compares UnicodeSets, in three different ways.

[Android.Runtime.Register("compareTo", "(Landroid/icu/text/UnicodeSet;Landroid/icu/text/UnicodeSet$ComparisonStyle;)I", "GetCompareTo_Landroid_icu_text_UnicodeSet_Landroid_icu_text_UnicodeSet_ComparisonStyle_Handler", ApiSince=24)]
public virtual int CompareTo(Android.Icu.Text.UnicodeSet? o, Android.Icu.Text.UnicodeSet.ComparisonStyle? style);
[<Android.Runtime.Register("compareTo", "(Landroid/icu/text/UnicodeSet;Landroid/icu/text/UnicodeSet$ComparisonStyle;)I", "GetCompareTo_Landroid_icu_text_UnicodeSet_Landroid_icu_text_UnicodeSet_ComparisonStyle_Handler", ApiSince=24)>]
abstract member CompareTo : Android.Icu.Text.UnicodeSet * Android.Icu.Text.UnicodeSet.ComparisonStyle -> int
override this.CompareTo : Android.Icu.Text.UnicodeSet * Android.Icu.Text.UnicodeSet.ComparisonStyle -> int

Parameters

o
UnicodeSet

The Unicode set with which to compare this set.

style
UnicodeSet.ComparisonStyle

Selects lexicographic comparison alone or an element-count comparison before lexicographic comparison.

Returns

A negative value, zero, or a positive value as this set sorts before, equals, or sorts after o under the selected style.

Attributes

Remarks

Compares UnicodeSets, in three different ways.

Android reference for android.icu.text.UnicodeSet.compareTo.

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

CompareTo(IIterable)

Compares this set's string iteration with another string iterable.

[Android.Runtime.Register("compareTo", "(Ljava/lang/Iterable;)I", "GetCompareTo_Ljava_lang_Iterable_Handler", ApiSince=24)]
public virtual int CompareTo(Java.Lang.IIterable? other);
[<Android.Runtime.Register("compareTo", "(Ljava/lang/Iterable;)I", "GetCompareTo_Ljava_lang_Iterable_Handler", ApiSince=24)>]
abstract member CompareTo : Java.Lang.IIterable -> int
override this.CompareTo : Java.Lang.IIterable -> int

Parameters

other
IIterable

The Java iterable of strings to compare with this set's string iteration.

Returns

A negative value, zero, or a positive value as this iteration sorts before, matches, or sorts after the other iteration.

Attributes

Remarks

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

CompareTo(UnicodeSet)

Compares UnicodeSets, where shorter come first, and otherwise lexicographically (according to the comparison of the first characters that differ).

[Android.Runtime.Register("compareTo", "(Landroid/icu/text/UnicodeSet;)I", "GetCompareTo_Landroid_icu_text_UnicodeSet_Handler", ApiSince=24)]
public virtual int CompareTo(Android.Icu.Text.UnicodeSet? o);
[<Android.Runtime.Register("compareTo", "(Landroid/icu/text/UnicodeSet;)I", "GetCompareTo_Landroid_icu_text_UnicodeSet_Handler", ApiSince=24)>]
abstract member CompareTo : Android.Icu.Text.UnicodeSet -> int
override this.CompareTo : Android.Icu.Text.UnicodeSet -> int

Parameters

o
UnicodeSet

The Unicode set with which to compare this set.

Returns

A negative value if this set sorts first, zero if the sets are equal, or a positive value if this set sorts after o.

Attributes

Remarks

Compares UnicodeSets, where shorter come first, and otherwise lexicographically (according to the comparison of the first characters that differ).

Java documentation for android.icu.text.UnicodeSet.compareTo(android.icu.text.UnicodeSet).

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