Package herddb.utils
Class CompareBytesUtils
- java.lang.Object
-
- herddb.utils.CompareBytesUtils
-
public final class CompareBytesUtils extends Object
Java 8 compatibile version. In Java 8 you cannot use Arrays.compare(byte[], byte[])
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanarraysEquals(byte[] left, byte[] right)static booleanarraysEquals(byte[] left, int fromIndex, int toIndex, byte[] right, int fromIndex2, int toIndex2)static intcompare(byte[] left, byte[] right)static intcompare(byte[] left, int fromIndex, int toIndex, byte[] right, int fromIndex2, int toIndex2)static inthashCode(byte[] a, int offset, int length)
-
-
-
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)
-
-