public static int compareTo(final byte[] left, final byte[] right) {
        return LexicographicalComparerHolder.BEST_COMPARER.compareTo(left,
                0,
                left == null
                        ? 0
                        : left.length,
                right,
                0,
                right == null
                        ? 0
                        : right.length);
    }
Lexicographically compare two arrays.

@param left  left operand
@param right right operand
@return 0 if equal, &lt; 0 if left is less than right, etc.
stroom-bytebuffer/src/main/java/stroom/bytebuffer/hbase/Bytes.java