[Java] Update auto-generated Java files
[ldk-java] / src / main / java / org / ldk / structs / Invoice.java
index 6faacbd0cc475cb4495ef2100744ecc41e71df2d..5bc61db4056b895b4fd35f03c5c2be39e9f545aa 100644 (file)
@@ -60,6 +60,18 @@ public class Invoice extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two Invoices contain equal inner contents.
+        */
+       public long hash() {
+               long ret = bindings.Invoice_hash(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Transform the `Invoice` into it's unchecked version
         */