Freigeben über


TextUtils.Equals Method

Definition

Overloads

Equals(ICharSequence, ICharSequence)

Returns true if a and b are equal, including if they are both null.

Equals(String, String)

Returns true if a and b are equal, including if they are both null.

Equals(ICharSequence, ICharSequence)

Returns true if a and b are equal, including if they are both null.

[Android.Runtime.Register("equals", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z", "")]
public static bool Equals (Java.Lang.ICharSequence? a, Java.Lang.ICharSequence? b);
[<Android.Runtime.Register("equals", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z", "")>]
static member Equals : Java.Lang.ICharSequence * Java.Lang.ICharSequence -> bool

Parameters

a
ICharSequence

first CharSequence to check

b
ICharSequence

second CharSequence to check

Returns

true if a and b are equal

Attributes

Remarks

Returns true if a and b are equal, including if they are both null.

Note: In platform versions 1.1 and earlier, this method only worked well if both the arguments were instances of String.

Java documentation for android.text.TextUtils.equals(java.lang.CharSequence, java.lang.CharSequence).

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

Equals(String, String)

Returns true if a and b are equal, including if they are both null.

public static bool Equals (string? a, string? b);
static member Equals : string * string -> bool

Parameters

a
String

first CharSequence to check

b
String

second CharSequence to check

Returns

true if a and b are equal

Remarks

Returns true if a and b are equal, including if they are both null.

Note: In platform versions 1.1 and earlier, this method only worked well if both the arguments were instances of String.

Java documentation for android.text.TextUtils.equals(java.lang.CharSequence, java.lang.CharSequence).

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