class ByteArrayWrapper implements Comparable<ByteArrayWrapper>, Serializable {

    public boolean equals(Object other) {
        if (!(other instanceof ByteArrayWrapper))
            return false;
        byte[] otherData = ((ByteArrayWrapper) other).getData();
        return FastByteComparisons.compareTo(
                data, 0, data.length,
                otherData, 0, otherData.length) == 0;
    }

    public  ByteArrayWrapper(byte[] data);

}