Class ByteUtils


  • public final class ByteUtils
    extends Object
    Utility methods for bytes
    • Method Detail

      • compareBytes

        public static int compareBytes​(byte[] bytes1,
                                       byte[] bytes2)
      • areKeyBytesEqual

        public static boolean areKeyBytesEqual​(byte[] bytes1,
                                               byte[] bytes2)
        Copy of the isEqual method in Key.
        Parameters:
        bytes1 - first array of bytes to test
        bytes2 - second array of bytes to test
        Returns:
        true if the provided bytes are equal