Update auto-generated bindings
[ldk-java] / ts / structs / Result_boolLightningErrorZ.ts
index 1b5ac3dd566b326e1edf94267dd4dd3625b1d7fb..454ecdc6dcd8949dd48550f7f6b85ef36179eb02 100644 (file)
@@ -21,9 +21,6 @@ public class Result_boolLightningErrorZ extends CommonBase {
                        super(_dummy, ptr);
                        this.res = bindings.LDKCResult_boolLightningErrorZ_get_ok(ptr);
                }
-               public Result_boolLightningErrorZ_OK(boolean res) {
-                       this(null, bindings.CResult_boolLightningErrorZ_ok(res));
-               }
        }
 
        public static final class Result_boolLightningErrorZ_Err extends Result_boolLightningErrorZ {
@@ -35,9 +32,25 @@ public class Result_boolLightningErrorZ extends CommonBase {
                        err_hu_conv.ptrs_to.add(this);
                        this.err = err_hu_conv;
                }
-               public Result_boolLightningErrorZ_Err(LightningError err) {
-                       this(null, bindings.CResult_boolLightningErrorZ_err(err == null ? 0 : err.ptr & ~1));
-                       this.ptrs_to.add(err);
-               }
        }
+
+       public static Result_boolLightningErrorZ constructor__ok(boolean o) {
+               number ret = bindings.CResult_boolLightningErrorZ_ok(o);
+               Result_boolLightningErrorZ ret_hu_conv = Result_boolLightningErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
+       }
+
+       public static Result_boolLightningErrorZ constructor__err(LightningError e) {
+               number ret = bindings.CResult_boolLightningErrorZ_err(e == null ? 0 : e.ptr & ~1);
+               Result_boolLightningErrorZ ret_hu_conv = Result_boolLightningErrorZ.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(e);
+               return ret_hu_conv;
+       }
+
+       public Result_boolLightningErrorZ _clone() {
+               number ret = bindings.CResult_boolLightningErrorZ_clone(this.ptr);
+               Result_boolLightningErrorZ ret_hu_conv = Result_boolLightningErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
+       }
+
 }