Partager via


RuleBasedCollator.GetCollationKey(String) Method

Definition

Transforms the string into a series of characters that can be compared with CollationKey.

[Android.Runtime.Register("getCollationKey", "(Ljava/lang/String;)Ljava/text/CollationKey;", "GetGetCollationKey_Ljava_lang_String_Handler")]
public override Java.Text.CollationKey? GetCollationKey (string? source);
[<Android.Runtime.Register("getCollationKey", "(Ljava/lang/String;)Ljava/text/CollationKey;", "GetGetCollationKey_Ljava_lang_String_Handler")>]
override this.GetCollationKey : string -> Java.Text.CollationKey

Parameters

source
String

the specified source text.

Returns

Attributes

Remarks

Transforms the string into a series of characters that can be compared with CollationKey.compareTo. This overrides java.text.Collator.getCollationKey. It can be overridden in a subclass.

Java documentation for java.text.RuleBasedCollator.getCollationKey(java.lang.String).

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