Udostępnij za pośrednictwem


Collator.Compare Method

Definition

Overloads

Compare(String, String)
Compare(Object, Object)

Compare(String, String)

[Android.Runtime.Register("compare", "(Ljava/lang/String;Ljava/lang/String;)I", "GetCompare_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=24)]
public abstract int Compare (string? source, string? target);
[<Android.Runtime.Register("compare", "(Ljava/lang/String;Ljava/lang/String;)I", "GetCompare_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member Compare : string * string -> int

Parameters

source
String
target
String

Returns

Attributes

Remarks

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

Compare(Object, Object)

[Android.Runtime.Register("compare", "(Ljava/lang/Object;Ljava/lang/Object;)I", "GetCompare_Ljava_lang_Object_Ljava_lang_Object_Handler", ApiSince=24)]
public virtual int Compare (Java.Lang.Object? source, Java.Lang.Object? target);
[<Android.Runtime.Register("compare", "(Ljava/lang/Object;Ljava/lang/Object;)I", "GetCompare_Ljava_lang_Object_Ljava_lang_Object_Handler", ApiSince=24)>]
abstract member Compare : Java.Lang.Object * Java.Lang.Object -> int
override this.Compare : Java.Lang.Object * Java.Lang.Object -> int

Parameters

source
Object
target
Object

Returns

Attributes

Remarks

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