Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Option_FilterZ.java
index 117215e19381560dfcffbafd71ce6f787bcaf784..0561ae71b4d34079d382a3ef9af66bc07e82cbe8 100644 (file)
@@ -29,6 +29,9 @@ public class Option_FilterZ extends CommonBase {
                assert false; return null; // Unreachable without extending the (internal) bindings interface
        }
 
+       /**
+        * When we're in this state, this COption_FilterZ contains a crate::lightning::chain::Filter
+        */
        public final static class Some extends Option_FilterZ {
                public final Filter some;
                private Some(long ptr, bindings.LDKCOption_FilterZ.Some obj) {
@@ -39,6 +42,9 @@ public class Option_FilterZ extends CommonBase {
                        this.some = ret_hu_conv;
                }
        }
+       /**
+        * When we're in this state, this COption_FilterZ contains nothing
+        */
        public final static class None extends Option_FilterZ {
                private None(long ptr, bindings.LDKCOption_FilterZ.None obj) {
                        super(null, ptr);
@@ -49,7 +55,7 @@ public class Option_FilterZ extends CommonBase {
         */
        public static Option_FilterZ some(Filter o) {
                long ret = bindings.COption_FilterZ_some(o == null ? 0 : o.ptr);
-               if (ret < 1024) { return null; }
+               if (ret >= 0 && ret <= 4096) { return null; }
                Option_FilterZ ret_hu_conv = Option_FilterZ.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                ret_hu_conv.ptrs_to.add(o);
@@ -61,7 +67,7 @@ public class Option_FilterZ extends CommonBase {
         */
        public static Option_FilterZ none() {
                long ret = bindings.COption_FilterZ_none();
-               if (ret < 1024) { return null; }
+               if (ret >= 0 && ret <= 4096) { return null; }
                Option_FilterZ ret_hu_conv = Option_FilterZ.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;