if (!(o instanceof UntrustedString)) return false;
return this.eq((UntrustedString)o);
}
+ /**
+ * Generates a non-cryptographic 64-bit hash of the UntrustedString.
+ */
+ public long hash() {
+ long ret = bindings.UntrustedString_hash(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ @Override public int hashCode() {
+ return (int)this.hash();
+ }
/**
* Serialize the UntrustedString object into a byte array which can be read by UntrustedString_read
*/