Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / InvoiceSignature.java
index 417ac79ae719557d5819972df7f4c7d87520cc96..c6f759108924e587594b5a943731b8224a737a2e 100644 (file)
@@ -4,6 +4,7 @@ import org.ldk.impl.bindings;
 import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
+import javax.annotation.Nullable;
 
 
 /**
@@ -18,14 +19,8 @@ public class InvoiceSignature extends CommonBase {
                if (ptr != 0) { bindings.InvoiceSignature_free(ptr); }
        }
 
-       /**
-        * Checks if two InvoiceSignatures contain equal inner contents.
-        * 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(InvoiceSignature b) {
-               boolean ret = bindings.InvoiceSignature_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
-               this.ptrs_to.add(b);
+       long clone_ptr() {
+               long ret = bindings.InvoiceSignature_clone_ptr(this.ptr);
                return ret;
        }
 
@@ -34,9 +29,21 @@ public class InvoiceSignature extends CommonBase {
         */
        public InvoiceSignature clone() {
                long ret = bindings.InvoiceSignature_clone(this.ptr);
-               InvoiceSignature ret_hu_conv = new InvoiceSignature(null, ret);
+               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.
+        * Two objects with NULL inner values will be considered "equal" here.
+        */
+       public boolean eq(InvoiceSignature b) {
+               boolean ret = bindings.InvoiceSignature_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               this.ptrs_to.add(b);
+               return ret;
+       }
+
 }