Tests whether two byte arrays have the same contents. @param a First non-null byte array to compare. @param b Second non-null byte array to compare. @return true if the two arrays are identical, false otherwise.
(final byte[] a, final byte[] b)
| 593 | * {@code false} otherwise. |
| 594 | */ |
| 595 | public static boolean equals(final byte[] a, final byte[] b) { |
| 596 | return memcmp(a, b) == 0; |
| 597 | } |
| 598 | |
| 599 | /** |
| 600 | * {@code memcmp(3)} in Java for possibly {@code null} arrays, hooray. |
no test coverage detected