[Java] Update auto-generated Java bindings for 0.0.113
[ldk-java] / src / main / java / org / ldk / structs / Invoice.java
index 6faacbd0cc475cb4495ef2100744ecc41e71df2d..596982ab493c4dcabd6097eb951f1b301b87fec7 100644 (file)
@@ -30,7 +30,7 @@ public class Invoice extends CommonBase {
         * This ignores pointers and is_owned flags and looks at the values in fields.
         * Two objects with NULL inner values will be considered "equal" here.
         */
-       public boolean eq(Invoice b) {
+       public boolean eq(org.ldk.structs.Invoice b) {
                boolean ret = bindings.Invoice_eq(this.ptr, b == null ? 0 : b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
@@ -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
         */
@@ -106,7 +118,7 @@ public class Invoice extends CommonBase {
         * assert!(Invoice::from_signed(signed).is_ok());
         * ```
         */
-       public static Result_InvoiceSemanticErrorZ from_signed(SignedRawInvoice signed_invoice) {
+       public static Result_InvoiceSemanticErrorZ from_signed(org.ldk.structs.SignedRawInvoice signed_invoice) {
                long ret = bindings.Invoice_from_signed(signed_invoice == null ? 0 : signed_invoice.ptr);
                Reference.reachabilityFence(signed_invoice);
                if (ret >= 0 && ret <= 4096) { return null; }