Dela via


AlphabetIndexer.Compare(String, String) Method

Definition

Default implementation compares the first character of word with letter.

[Android.Runtime.Register("compare", "(Ljava/lang/String;Ljava/lang/String;)I", "GetCompare_Ljava_lang_String_Ljava_lang_String_Handler")]
protected virtual int Compare (string? word, string? letter);
[<Android.Runtime.Register("compare", "(Ljava/lang/String;Ljava/lang/String;)I", "GetCompare_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member Compare : string * string -> int
override this.Compare : string * string -> int

Parameters

word
String
letter
String

Returns

Attributes

Remarks

Default implementation compares the first character of word with letter.

Java documentation for android.widget.AlphabetIndexer.compare(java.lang.String, 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