Update auto-generated bindings to 0.0.103
[ldk-java] / src / main / java / org / ldk / structs / Option_u32Z.java
index f507498f29b7f752349610d3c35b6c39f7c27f79..3c4fcd68799fbed6858d2c3d22f44ef3140674f1 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;
 
 
 /**
@@ -43,8 +44,9 @@ public class Option_u32Z extends CommonBase {
        /**
         * Constructs a new COption_u32Z containing a u32
         */
-       public static Option_u32Z constructor_some(int o) {
+       public static Option_u32Z some(int o) {
                long ret = bindings.COption_u32Z_some(o);
+               if (ret >= 0 && ret <= 4096) { return null; }
                Option_u32Z ret_hu_conv = Option_u32Z.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
@@ -53,8 +55,9 @@ public class Option_u32Z extends CommonBase {
        /**
         * Constructs a new COption_u32Z containing nothing
         */
-       public static Option_u32Z constructor_none() {
+       public static Option_u32Z none() {
                long ret = bindings.COption_u32Z_none();
+               if (ret >= 0 && ret <= 4096) { return null; }
                Option_u32Z ret_hu_conv = Option_u32Z.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
@@ -66,6 +69,7 @@ public class Option_u32Z extends CommonBase {
         */
        public Option_u32Z clone() {
                long ret = bindings.COption_u32Z_clone(this.ptr);
+               if (ret >= 0 && ret <= 4096) { return null; }
                Option_u32Z ret_hu_conv = Option_u32Z.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;