[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Refund.java
index 2479eb9b2cb1e32a9351ac923428d06238eaa21e..f7750ac01163f619673a0d03ed0981feca459727 100644 (file)
@@ -208,6 +208,18 @@ public class Refund extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the Refund.
+        */
+       public long hash() {
+               long ret = bindings.Refund_hash(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Serialize the Refund object into a byte array which can be read by Refund_read
         */