Collator.Equals(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares the equality of two text Strings using this Collator's rules, strength and decomposition mode.
[Android.Runtime.Register("equals", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetEquals_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=24)]
public virtual bool Equals (string? source, string? target);
[<Android.Runtime.Register("equals", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetEquals_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=24)>]
override this.Equals : string * string -> bool
Parameters
- source
- String
the source string to be compared.
- target
- String
the target string to be compared.
Returns
true if the strings are equal according to the collation rules, otherwise false.
- Attributes
Remarks
Compares the equality of two text Strings using this Collator's rules, strength and decomposition mode. Convenience method.
Java documentation for android.icu.text.Collator.equals(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.