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