Update auto-generated bindings to 0.0.103
[ldk-java] / src / main / java / org / ldk / structs / InvoiceSignature.java
index 690787d500afe7b9e42843f4d205ab89a8ad6a22..8ff00fc63149835993d9c2c364abde30915740b6 100644 (file)
@@ -19,6 +19,17 @@ public class InvoiceSignature extends CommonBase {
                if (ptr != 0) { bindings.InvoiceSignature_free(ptr); }
        }
 
+       /**
+        * Creates a copy of the InvoiceSignature
+        */
+       public InvoiceSignature clone() {
+               long ret = bindings.InvoiceSignature_clone(this.ptr);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               InvoiceSignature ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new InvoiceSignature(null, ret); }
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
        /**
         * Checks if two InvoiceSignatures contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -30,15 +41,4 @@ public class InvoiceSignature extends CommonBase {
                return ret;
        }
 
-       /**
-        * Creates a copy of the InvoiceSignature
-        */
-       public InvoiceSignature clone() {
-               long ret = bindings.InvoiceSignature_clone(this.ptr);
-               if (ret < 1024) { return null; }
-               InvoiceSignature ret_hu_conv = new InvoiceSignature(null, ret);
-               ret_hu_conv.ptrs_to.add(this);
-               return ret_hu_conv;
-       }
-
 }