List of utility methods to do Byte Array Compare
int | compareTo(final byte[] left, final byte[] right) compare To return compareTo(left, 0, left.length, right, 0, right.length);
|
boolean | areEqual(byte[] a, byte[] b) are Equal if (a == null && b == null) { return true; if (a == null || b == null) { return false; if (a.length != b.length) { return false; ... |
boolean | compare(byte[] arr1, byte[] arr2) compare if (arr1 == null || arr2 == null) { return false; } else if (arr1.length != arr2.length) { return false; } else { for (int i = 0; i < arr1.length; i++) { if (arr1[i] != arr2[i]) { return false; ... |
boolean | areByteArraysEqual(byte[] byteArray0, byte[] byteArray1) are Byte Arrays Equal if (byteArray0 == null && byteArray1 != null) { return false; } else if (byteArray0 != null && byteArray1 == null) { return false; } else if (byteArray0 == null && byteArray1 == null) { return true; if (byteArray0.length != byteArray1.length) { ... |