Android Utililty Methods Array Equal

List of utility methods to do Array Equal

Description

The list of methods to do Array Equal are organized into topic(s).

Method

booleanareEqual(boolean[] a, boolean[] b)
are Equal
if (a == b) {
    return true;
if (a == null || b == null) {
    return false;
if (a.length != b.length) {
    return false;
...
booleanareEqual(byte[] a, byte[] b)
are Equal
if (a == b) {
    return true;
if (a == null || b == null) {
    return false;
if (a.length != b.length) {
    return false;
...
booleanareEqual(int[] a, int[] b)
are Equal
if (a == b) {
    return true;
if (a == null || b == null) {
    return false;
if (a.length != b.length) {
    return false;
...
booleanequals(byte[] array1, byte[] array2, int length)
Checks if the beginnings of two byte arrays are equal.
if (array1 == array2) {
    return true;
if (array1 == null || array2 == null || array1.length < length
        || array2.length < length) {
    return false;
for (int i = 0; i < length; i++) {
...