CollationKey.CompareTo(CollationKey) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compare this CollationKey to another CollationKey.
[Android.Runtime.Register("compareTo", "(Landroid/icu/text/CollationKey;)I", "", ApiSince=24)]
public int CompareTo (Android.Icu.Text.CollationKey? target);
[<Android.Runtime.Register("compareTo", "(Landroid/icu/text/CollationKey;)I", "", ApiSince=24)>]
member this.CompareTo : Android.Icu.Text.CollationKey -> int
Parameters
- target
- CollationKey
target CollationKey
Returns
an integer value. If the value is less than zero this CollationKey is less than than target, if the value is zero they are equal, and if the value is greater than zero this CollationKey is greater than target.
- Attributes
Remarks
Compare this CollationKey to another CollationKey. The collation rules of the Collator that created this key are applied.
<strong>Note:</strong> Comparison between CollationKeys created by different Collators might return incorrect results. See class documentation.
Java documentation for android.icu.text.CollationKey.compareTo(android.icu.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.