@Override public boolean equals(Object other) { if (this == other) return true; if (other == null) return false; // we intentionally use the function to compute hashcode here if (this.hashCode() != other.hashCode()) return false; if (other instanceof Bytes) return Arrays.equals(this.bytes, ((Bytes) other).get()); return false; }