X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FPaymentSendFailure.java;h=69375c1f6bd96b744a76fba3f11b42831a56017f;hb=ff3dacec3be60f870d81f6df11bd9fff92aa6047;hp=c87afdf069e1371270453084ecb55ad705fd4f5e;hpb=d2925e24ac4643ec22eb73495f0424e27def2545;p=ldk-java diff --git a/src/main/java/org/ldk/structs/PaymentSendFailure.java b/src/main/java/org/ldk/structs/PaymentSendFailure.java index c87afdf0..69375c1f 100644 --- a/src/main/java/org/ldk/structs/PaymentSendFailure.java +++ b/src/main/java/org/ldk/structs/PaymentSendFailure.java @@ -44,11 +44,11 @@ public class PaymentSendFailure extends CommonBase { * once you've changed the parameter at error, you can freely retry the payment in full. */ public final static class ParameterError extends PaymentSendFailure { - public final APIError parameter_error; + public final org.ldk.structs.APIError parameter_error; private ParameterError(long ptr, bindings.LDKPaymentSendFailure.ParameterError obj) { super(null, ptr); long parameter_error = obj.parameter_error; - APIError parameter_error_hu_conv = APIError.constr_from_ptr(parameter_error); + org.ldk.structs.APIError parameter_error_hu_conv = org.ldk.structs.APIError.constr_from_ptr(parameter_error); parameter_error_hu_conv.ptrs_to.add(this); this.parameter_error = parameter_error_hu_conv; } @@ -67,8 +67,9 @@ public class PaymentSendFailure extends CommonBase { private PathParameterError(long ptr, bindings.LDKPaymentSendFailure.PathParameterError obj) { super(null, ptr); long[] path_parameter_error = obj.path_parameter_error; - Result_NoneAPIErrorZ[] path_parameter_error_conv_22_arr = new Result_NoneAPIErrorZ[path_parameter_error.length]; - for (int w = 0; w < path_parameter_error.length; w++) { + int path_parameter_error_conv_22_len = path_parameter_error.length; + Result_NoneAPIErrorZ[] path_parameter_error_conv_22_arr = new Result_NoneAPIErrorZ[path_parameter_error_conv_22_len]; + for (int w = 0; w < path_parameter_error_conv_22_len; w++) { long path_parameter_error_conv_22 = path_parameter_error[w]; Result_NoneAPIErrorZ path_parameter_error_conv_22_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(path_parameter_error_conv_22); path_parameter_error_conv_22_arr[w] = path_parameter_error_conv_22_hu_conv; @@ -86,10 +87,11 @@ public class PaymentSendFailure extends CommonBase { private AllFailedRetrySafe(long ptr, bindings.LDKPaymentSendFailure.AllFailedRetrySafe obj) { super(null, ptr); long[] all_failed_retry_safe = obj.all_failed_retry_safe; - APIError[] all_failed_retry_safe_conv_10_arr = new APIError[all_failed_retry_safe.length]; - for (int k = 0; k < all_failed_retry_safe.length; k++) { + int all_failed_retry_safe_conv_10_len = all_failed_retry_safe.length; + APIError[] all_failed_retry_safe_conv_10_arr = new APIError[all_failed_retry_safe_conv_10_len]; + for (int k = 0; k < all_failed_retry_safe_conv_10_len; k++) { long all_failed_retry_safe_conv_10 = all_failed_retry_safe[k]; - APIError all_failed_retry_safe_conv_10_hu_conv = APIError.constr_from_ptr(all_failed_retry_safe_conv_10); + org.ldk.structs.APIError all_failed_retry_safe_conv_10_hu_conv = org.ldk.structs.APIError.constr_from_ptr(all_failed_retry_safe_conv_10); all_failed_retry_safe_conv_10_hu_conv.ptrs_to.add(this); all_failed_retry_safe_conv_10_arr[k] = all_failed_retry_safe_conv_10_hu_conv; } @@ -122,7 +124,7 @@ public class PaymentSendFailure extends CommonBase { * * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None */ - @Nullable public final RouteParameters failed_paths_retry; + @Nullable public final org.ldk.structs.RouteParameters failed_paths_retry; /** * The payment id for the payment, which is now at least partially pending. */ @@ -130,8 +132,9 @@ public class PaymentSendFailure extends CommonBase { private PartialFailure(long ptr, bindings.LDKPaymentSendFailure.PartialFailure obj) { super(null, ptr); long[] results = obj.results; - Result_NoneAPIErrorZ[] results_conv_22_arr = new Result_NoneAPIErrorZ[results.length]; - for (int w = 0; w < results.length; w++) { + int results_conv_22_len = results.length; + Result_NoneAPIErrorZ[] results_conv_22_arr = new Result_NoneAPIErrorZ[results_conv_22_len]; + for (int w = 0; w < results_conv_22_len; w++) { long results_conv_22 = results[w]; Result_NoneAPIErrorZ results_conv_22_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(results_conv_22); results_conv_22_arr[w] = results_conv_22_hu_conv; @@ -157,7 +160,7 @@ public class PaymentSendFailure extends CommonBase { long ret = bindings.PaymentSendFailure_clone(this.ptr); Reference.reachabilityFence(this); if (ret >= 0 && ret <= 4096) { return null; } - PaymentSendFailure ret_hu_conv = PaymentSendFailure.constr_from_ptr(ret); + org.ldk.structs.PaymentSendFailure ret_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -169,7 +172,7 @@ public class PaymentSendFailure extends CommonBase { long ret = bindings.PaymentSendFailure_parameter_error(a.ptr); Reference.reachabilityFence(a); if (ret >= 0 && ret <= 4096) { return null; } - PaymentSendFailure ret_hu_conv = PaymentSendFailure.constr_from_ptr(ret); + org.ldk.structs.PaymentSendFailure ret_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } @@ -181,7 +184,7 @@ public class PaymentSendFailure extends CommonBase { long ret = bindings.PaymentSendFailure_path_parameter_error(a != null ? Arrays.stream(a).mapToLong(a_conv_22 -> a_conv_22 != null ? a_conv_22.ptr : 0).toArray() : null); Reference.reachabilityFence(a); if (ret >= 0 && ret <= 4096) { return null; } - PaymentSendFailure ret_hu_conv = PaymentSendFailure.constr_from_ptr(ret); + org.ldk.structs.PaymentSendFailure ret_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } @@ -193,7 +196,7 @@ public class PaymentSendFailure extends CommonBase { long ret = bindings.PaymentSendFailure_all_failed_retry_safe(a != null ? Arrays.stream(a).mapToLong(a_conv_10 -> a_conv_10.ptr).toArray() : null); Reference.reachabilityFence(a); if (ret >= 0 && ret <= 4096) { return null; } - PaymentSendFailure ret_hu_conv = PaymentSendFailure.constr_from_ptr(ret); + org.ldk.structs.PaymentSendFailure ret_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } @@ -207,7 +210,7 @@ public class PaymentSendFailure extends CommonBase { Reference.reachabilityFence(failed_paths_retry); Reference.reachabilityFence(payment_id); if (ret >= 0 && ret <= 4096) { return null; } - PaymentSendFailure ret_hu_conv = PaymentSendFailure.constr_from_ptr(ret); + org.ldk.structs.PaymentSendFailure ret_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }