語言

RuleBasedCollator.GetCollationKey(String) 方法

定義

將字串轉換成一系列字元,可與 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

參數

source
String

指定的原始文本。

傳回

屬性

備註

將字串轉換成一系列字元,可與 CollationKey.compareTo 比較。 此會覆寫 java.text.Collator.getCollationKey。 它可以在子職業中被覆寫。

Java 文件 java.text.RuleBasedCollator.getCollationKey(java.lang.String)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於