Package herddb.utils

Class CompareBytesUtils


  • public final class CompareBytesUtils
    extends Object
    Java 8 compatibile version. In Java 8 you cannot use Arrays.compare(byte[], byte[])
    • Method Detail

      • compare

        public static int compare​(byte[] left,
                                  byte[] right)
      • arraysEquals

        public static boolean arraysEquals​(byte[] left,
                                           byte[] right)
      • compare

        public static int compare​(byte[] left,
                                  int fromIndex,
                                  int toIndex,
                                  byte[] right,
                                  int fromIndex2,
                                  int toIndex2)
      • arraysEquals

        public static boolean arraysEquals​(byte[] left,
                                           int fromIndex,
                                           int toIndex,
                                           byte[] right,
                                           int fromIndex2,
                                           int toIndex2)
      • hashCode

        public static int hashCode​(byte[] a,
                                   int offset,
                                   int length)