Android Utililty Methods Byte Array Equal

List of utility methods to do Byte Array Equal

Description

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

Method

booleanequals(byte[] a1, byte[] a2)
equals
if ((a1 == null) || (a2 == null)) {
    return a1 == a2;
int nLength = a1.length;
if (nLength != a2.length) {
    return false;
for (int i = 0; i < nLength; i++) {
...
booleanequals(byte[] array1, byte[] array2)
equals
if (array1 == array2) {
    return true;
if (array1 == null || array2 == null) {
    return false;
if (array1.length != array2.length) {
    return false;
...
booleanequals(byte[] left, byte[] right)
equals
if (left == null) {
    return right == null;
if (right == null) {
    return false;
if (left.length != right.length) {
    return false;
...
booleanequals(int[] a1, int[] a2)
equals
if ((a1 == null) || (a2 == null)) {
    return a1 == a2;
int nLength = a1.length;
if (nLength != a2.length) {
    return false;
for (int i = 0; i < nLength; i++) {
...