+ if (this != null) { this.ptrs_to.add(val); };
+ }
+
+ /**
+ * Pending inbound HTLCs.
+ *
+ * This field is empty for objects serialized with LDK versions prior to 0.0.122.
+ */
+ public InboundHTLCDetails[] get_pending_inbound_htlcs() {
+ long[] ret = bindings.ChannelDetails_get_pending_inbound_htlcs(this.ptr);
+ Reference.reachabilityFence(this);
+ int ret_conv_20_len = ret.length;
+ InboundHTLCDetails[] ret_conv_20_arr = new InboundHTLCDetails[ret_conv_20_len];
+ for (int u = 0; u < ret_conv_20_len; u++) {
+ long ret_conv_20 = ret[u];
+ org.ldk.structs.InboundHTLCDetails ret_conv_20_hu_conv = null; if (ret_conv_20 < 0 || ret_conv_20 > 4096) { ret_conv_20_hu_conv = new org.ldk.structs.InboundHTLCDetails(null, ret_conv_20); }
+ if (ret_conv_20_hu_conv != null) { ret_conv_20_hu_conv.ptrs_to.add(this); };
+ ret_conv_20_arr[u] = ret_conv_20_hu_conv;
+ }
+ return ret_conv_20_arr;
+ }
+
+ /**
+ * Pending inbound HTLCs.
+ *
+ * This field is empty for objects serialized with LDK versions prior to 0.0.122.
+ */
+ public void set_pending_inbound_htlcs(InboundHTLCDetails[] val) {
+ bindings.ChannelDetails_set_pending_inbound_htlcs(this.ptr, val != null ? Arrays.stream(val).mapToLong(val_conv_20 -> val_conv_20.ptr).toArray() : null);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ for (InboundHTLCDetails val_conv_20: val) { if (this != null) { this.ptrs_to.add(val_conv_20); }; };
+ }
+
+ /**
+ * Pending outbound HTLCs.
+ *
+ * This field is empty for objects serialized with LDK versions prior to 0.0.122.
+ */
+ public OutboundHTLCDetails[] get_pending_outbound_htlcs() {
+ long[] ret = bindings.ChannelDetails_get_pending_outbound_htlcs(this.ptr);
+ Reference.reachabilityFence(this);
+ int ret_conv_21_len = ret.length;
+ OutboundHTLCDetails[] ret_conv_21_arr = new OutboundHTLCDetails[ret_conv_21_len];
+ for (int v = 0; v < ret_conv_21_len; v++) {
+ long ret_conv_21 = ret[v];
+ org.ldk.structs.OutboundHTLCDetails ret_conv_21_hu_conv = null; if (ret_conv_21 < 0 || ret_conv_21 > 4096) { ret_conv_21_hu_conv = new org.ldk.structs.OutboundHTLCDetails(null, ret_conv_21); }
+ if (ret_conv_21_hu_conv != null) { ret_conv_21_hu_conv.ptrs_to.add(this); };
+ ret_conv_21_arr[v] = ret_conv_21_hu_conv;
+ }
+ return ret_conv_21_arr;
+ }
+
+ /**
+ * Pending outbound HTLCs.
+ *
+ * This field is empty for objects serialized with LDK versions prior to 0.0.122.
+ */
+ public void set_pending_outbound_htlcs(OutboundHTLCDetails[] val) {
+ bindings.ChannelDetails_set_pending_outbound_htlcs(this.ptr, val != null ? Arrays.stream(val).mapToLong(val_conv_21 -> val_conv_21.ptr).toArray() : null);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ for (OutboundHTLCDetails val_conv_21: val) { if (this != null) { this.ptrs_to.add(val_conv_21); }; };