Class ByteUtils
- java.lang.Object
-
- uk.gov.gchq.gaffer.accumulostore.utils.ByteUtils
-
public final class ByteUtils extends Object
Utility methods for bytes
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
areKeyBytesEqual(byte[] bytes1, byte[] bytes2)
Copy of the isEqual method inKey
.static boolean
areKeyBytesEqual(BytesAndRange a, BytesAndRange b)
static int
compareBytes(byte[] bytes1, byte[] bytes2)
-
-
-
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 inKey
.- Parameters:
bytes1
- first array of bytes to testbytes2
- second array of bytes to test- Returns:
- true if the provided bytes are equal
-
areKeyBytesEqual
public static boolean areKeyBytesEqual(BytesAndRange a, BytesAndRange b)
-
-