Java.Text.Collator.Compare Method
Compares two objects to determine their relative order.

Syntax

[Android.Runtime.Register("compare", "(Ljava/lang/Object;Ljava/lang/Object;)I", "GetCompare_Ljava_lang_Object_Ljava_lang_Object_Handler")]
public virtual int Compare (Java.Lang.Object object1, Java.Lang.Object object2)

Parameters

object1
the first string to compare.
object2
the second string to compare.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ClassCastExceptionif object1 or object2 is not a String.

Remarks

Compares two objects to determine their relative order. The objects must be strings.

[Android Documentation]

Requirements

Namespace: Java.Text
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1