@Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof ByteArray)) {
            return false;
        }
        ByteArray lhs = (ByteArray) o;
        if (hashCode != lhs.hashCode) {
            return false;
        }
        return Arrays.equals(bytes, lhs.bytes);
    }
Byte array wrapper for hashtable use. Implements equals() and hashCode().
common/src/main/java/org/conscrypt/ByteArray.java