Arrays.Equals Method

Definition

Overloads

Equals(Single[], Single[])

Returns true if the two specified arrays of floats are equal to one another.

Equals(Int64[], Int64[])

Returns true if the two specified arrays of longs are equal to one another.

Equals(Int32[], Int32[])

Returns true if the two specified arrays of ints are equal to one another.

Equals(Int16[], Int16[])

Returns true if the two specified arrays of shorts are equal to one another.

Equals(Double[], Double[])

Returns true if the two specified arrays of doubles are equal to one another.

Equals(Char[], Char[])

Returns true if the two specified arrays of chars are equal to one another.

Equals(Byte[], Byte[])

Returns true if the two specified arrays of bytes are equal to one another.

Equals(Boolean[], Boolean[])

Returns true if the two specified arrays of booleans are equal to one another.

Equals(Object[], Object[])

Returns true if the two specified arrays of Objects are equal to one another.

Equals(Single[], Single[])

Returns true if the two specified arrays of floats are equal to one another.

[Android.Runtime.Register("equals", "([F[F)Z", "")]
public static bool Equals (float[]? a, float[]? a2);
[<Android.Runtime.Register("equals", "([F[F)Z", "")>]
static member Equals : single[] * single[] -> bool

Parameters

a
Single[]

one array to be tested for equality

a2
Single[]

the other array to be tested for equality

Returns

Boolean

true if the two arrays are equal

Attributes

Remarks

Java documentation for java.util.Arrays.equals(float[], float[]).

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(Int64[], Int64[])

Returns true if the two specified arrays of longs are equal to one another.

[Android.Runtime.Register("equals", "([J[J)Z", "")]
public static bool Equals (long[]? a, long[]? a2);
[<Android.Runtime.Register("equals", "([J[J)Z", "")>]
static member Equals : int64[] * int64[] -> bool

Parameters

a
Int64[]

one array to be tested for equality

a2
Int64[]

the other array to be tested for equality

Returns

Boolean

true if the two arrays are equal

Attributes

Remarks

Java documentation for java.util.Arrays.equals(long[], long[]).

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(Int32[], Int32[])

Returns true if the two specified arrays of ints are equal to one another.

[Android.Runtime.Register("equals", "([I[I)Z", "")]
public static bool Equals (int[]? a, int[]? a2);
[<Android.Runtime.Register("equals", "([I[I)Z", "")>]
static member Equals : int[] * int[] -> bool

Parameters

a
Int32[]

one array to be tested for equality

a2
Int32[]

the other array to be tested for equality

Returns

Boolean

true if the two arrays are equal

Attributes

Remarks

Java documentation for java.util.Arrays.equals(int[], int[]).

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(Int16[], Int16[])

Returns true if the two specified arrays of shorts are equal to one another.

[Android.Runtime.Register("equals", "([S[S)Z", "")]
public static bool Equals (short[]? a, short[]? a2);
[<Android.Runtime.Register("equals", "([S[S)Z", "")>]
static member Equals : int16[] * int16[] -> bool

Parameters

a
Int16[]

one array to be tested for equality

a2
Int16[]

the other array to be tested for equality

Returns

Boolean

true if the two arrays are equal

Attributes

Remarks

Java documentation for java.util.Arrays.equals(short[], short[]).

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(Double[], Double[])

Returns true if the two specified arrays of doubles are equal to one another.

[Android.Runtime.Register("equals", "([D[D)Z", "")]
public static bool Equals (double[]? a, double[]? a2);
[<Android.Runtime.Register("equals", "([D[D)Z", "")>]
static member Equals : double[] * double[] -> bool

Parameters

a
Double[]

one array to be tested for equality

a2
Double[]

the other array to be tested for equality

Returns

Boolean

true if the two arrays are equal

Attributes

Remarks

Java documentation for java.util.Arrays.equals(double[], double[]).

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(Char[], Char[])

Returns true if the two specified arrays of chars are equal to one another.

[Android.Runtime.Register("equals", "([C[C)Z", "")]
public static bool Equals (char[]? a, char[]? a2);
[<Android.Runtime.Register("equals", "([C[C)Z", "")>]
static member Equals : char[] * char[] -> bool

Parameters

a
Char[]

one array to be tested for equality

a2
Char[]

the other array to be tested for equality

Returns

Boolean

true if the two arrays are equal

Attributes

Remarks

Java documentation for java.util.Arrays.equals(char[], char[]).

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(Byte[], Byte[])

Returns true if the two specified arrays of bytes are equal to one another.

[Android.Runtime.Register("equals", "([B[B)Z", "")]
public static bool Equals (byte[]? a, byte[]? a2);
[<Android.Runtime.Register("equals", "([B[B)Z", "")>]
static member Equals : byte[] * byte[] -> bool

Parameters

a
Byte[]

one array to be tested for equality

a2
Byte[]

the other array to be tested for equality

Returns

Boolean

true if the two arrays are equal

Attributes

Remarks

Java documentation for java.util.Arrays.equals(byte[], byte[]).

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(Boolean[], Boolean[])

Returns true if the two specified arrays of booleans are equal to one another.

[Android.Runtime.Register("equals", "([Z[Z)Z", "")]
public static bool Equals (bool[]? a, bool[]? a2);
[<Android.Runtime.Register("equals", "([Z[Z)Z", "")>]
static member Equals : bool[] * bool[] -> bool

Parameters

a
Boolean[]

one array to be tested for equality

a2
Boolean[]

the other array to be tested for equality

Returns

Boolean

true if the two arrays are equal

Attributes

Remarks

Java documentation for java.util.Arrays.equals(boolean[], boolean[]).

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(Object[], Object[])

Returns true if the two specified arrays of Objects are equal to one another.

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

Parameters

a
Object[]

one array to be tested for equality

a2
Object[]

the other array to be tested for equality

Returns

Boolean

true if the two arrays are equal

Attributes

Remarks

Java documentation for java.util.Arrays.equals(java.lang.Object[], java.lang.Object[]).

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