[Java] Update auto-generated Java bindings to LDK 0.0.121
[ldk-java] / src / main / java / org / ldk / structs / UpdateFailHTLC.java
index a4f89c6ad0429836d200ccc706ad581a6494c4c4..e003c0d6a4713a87ef6211d95d57cd5bad04f80a 100644 (file)
@@ -76,6 +76,18 @@ public class UpdateFailHTLC extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the UpdateFailHTLC.
+        */
+       public long hash() {
+               long ret = bindings.UpdateFailHTLC_hash(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two UpdateFailHTLCs contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.