return new Result_UpdateAddHTLCDecodeErrorZ_OK(null, ptr);
} else {
return new Result_UpdateAddHTLCDecodeErrorZ_Err(null, ptr);
return new Result_UpdateAddHTLCDecodeErrorZ_OK(null, ptr);
} else {
return new Result_UpdateAddHTLCDecodeErrorZ_Err(null, ptr);
private Result_UpdateAddHTLCDecodeErrorZ_OK(Object _dummy, long ptr) {
super(_dummy, ptr);
long res = bindings.LDKCResult_UpdateAddHTLCDecodeErrorZ_get_ok(ptr);
private Result_UpdateAddHTLCDecodeErrorZ_OK(Object _dummy, long ptr) {
super(_dummy, ptr);
long res = bindings.LDKCResult_UpdateAddHTLCDecodeErrorZ_get_ok(ptr);
private Result_UpdateAddHTLCDecodeErrorZ_Err(Object _dummy, long ptr) {
super(_dummy, ptr);
long err = bindings.LDKCResult_UpdateAddHTLCDecodeErrorZ_get_err(ptr);
private Result_UpdateAddHTLCDecodeErrorZ_Err(Object _dummy, long ptr) {
super(_dummy, ptr);
long err = bindings.LDKCResult_UpdateAddHTLCDecodeErrorZ_get_err(ptr);
*/
public static Result_UpdateAddHTLCDecodeErrorZ ok(UpdateAddHTLC o) {
long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
*/
public static Result_UpdateAddHTLCDecodeErrorZ ok(UpdateAddHTLC o) {
long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
*/
public static Result_UpdateAddHTLCDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
*/
public static Result_UpdateAddHTLCDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
+ /**
+ * Checks if the given object is currently in the success state
+ */
+ public boolean is_ok() {
+ boolean ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_is_ok(this.ptr);
+ return ret;
+ }
+
+ long clone_ptr() {
+ long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(this.ptr);
+ return ret;
+ }
+
/**
* Creates a new CResult_UpdateAddHTLCDecodeErrorZ which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public Result_UpdateAddHTLCDecodeErrorZ clone() {
long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_clone(this.ptr);
/**
* Creates a new CResult_UpdateAddHTLCDecodeErrorZ which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public Result_UpdateAddHTLCDecodeErrorZ clone() {
long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_clone(this.ptr);