X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_OutPointDecodeErrorZ.java;h=45948abe8f73f781bff39c7c21f3705b597e7c62;hb=a7653cf8717b1f9df4d3f4c4bd0b1f50f3bbc230;hp=1aceb04caf536017215c9c9c9040126f2f549753;hpb=c45b91b3165ba0ff774d12d357188cae979574d3;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_OutPointDecodeErrorZ.java b/src/main/java/org/ldk/structs/Result_OutPointDecodeErrorZ.java index 1aceb04c..45948abe 100644 --- a/src/main/java/org/ldk/structs/Result_OutPointDecodeErrorZ.java +++ b/src/main/java/org/ldk/structs/Result_OutPointDecodeErrorZ.java @@ -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; public class Result_OutPointDecodeErrorZ extends CommonBase { private Result_OutPointDecodeErrorZ(Object _dummy, long ptr) { super(ptr); } @@ -43,8 +44,9 @@ public class Result_OutPointDecodeErrorZ extends CommonBase { /** * Creates a new CResult_OutPointDecodeErrorZ in the success state. */ - public static Result_OutPointDecodeErrorZ constructor_ok(OutPoint o) { + public static Result_OutPointDecodeErrorZ ok(OutPoint o) { long ret = bindings.CResult_OutPointDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1); + if (ret < 1024) { return null; } Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(o); return ret_hu_conv; @@ -53,8 +55,9 @@ public class Result_OutPointDecodeErrorZ extends CommonBase { /** * Creates a new CResult_OutPointDecodeErrorZ in the error state. */ - public static Result_OutPointDecodeErrorZ constructor_err(DecodeError e) { + public static Result_OutPointDecodeErrorZ err(DecodeError e) { long ret = bindings.CResult_OutPointDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1); + if (ret < 1024) { return null; } Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(e); return ret_hu_conv; @@ -66,6 +69,7 @@ public class Result_OutPointDecodeErrorZ extends CommonBase { */ public Result_OutPointDecodeErrorZ clone() { long ret = bindings.CResult_OutPointDecodeErrorZ_clone(this.ptr); + if (ret < 1024) { return null; } Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }