class EncryptedChunk {

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof EncryptedChunk)) {
            return false;
        }

        EncryptedChunk encryptedChunkOrdering = (EncryptedChunk) o;
        return Arrays.equals(mEncryptedBytes, encryptedChunkOrdering.mEncryptedBytes)
                && Arrays.equals(mNonce, encryptedChunkOrdering.mNonce)
                && mKey.equals(encryptedChunkOrdering.mKey);
    }

    private  EncryptedChunk(ChunkHash key, byte[] nonce, byte[] encryptedBytes);

}