Sdílet prostřednictvím


CollationKey.CompareTo(CollationKey) Method

Definition

Compare this CollationKey to the target CollationKey.

[Android.Runtime.Register("compareTo", "(Ljava/text/CollationKey;)I", "GetCompareTo_Ljava_text_CollationKey_Handler")]
public abstract int CompareTo (Java.Text.CollationKey? target);
[<Android.Runtime.Register("compareTo", "(Ljava/text/CollationKey;)I", "GetCompareTo_Ljava_text_CollationKey_Handler")>]
abstract member CompareTo : Java.Text.CollationKey -> int

Parameters

target
CollationKey

target CollationKey

Returns

Returns an integer value. Value is less than zero if this is less than target, value is zero if this and target are equal and value is greater than zero if this is greater than target.

Attributes

Remarks

Compare this CollationKey to the target CollationKey. The collation rules of the Collator object which created these keys are applied. <strong>Note:</strong> CollationKeys created by different Collators can not be compared.

Java documentation for java.text.CollationKey.compareTo(java.text.CollationKey).

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