public static Comparator<ByteArrayWrapper> comparator() {
        return new Comparator<ByteArrayWrapper>() {
            @Override
            public int compare(ByteArrayWrapper o1, ByteArrayWrapper o2) {
                return o1.compareTo(o2);
            }
        };
    }
A bytes wrapper mainly used to correctly compare contents of two byte lists.
indexr-common/src/main/java/io/indexr/util/ByteArrayWrapper.java