[Java] Update auto-generated Java bindings to LDK 0.0.121
[ldk-java] / src / main / java / org / ldk / structs / UntrustedString.java
index 4452d700ecd390b3efcad0c5bf523842b57307ae..ab654a54dee3d5d6a0fe513935aba6d8a6a483a5 100644 (file)
@@ -79,6 +79,18 @@ public class UntrustedString extends CommonBase {
                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
         */