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