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