1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class RouteHop extends CommonBase {
10 RouteHop(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.RouteHop_free(ptr); }
17 public static RouteHop constructor_clone(RouteHop orig) {
18 long ret = bindings.RouteHop_clone(orig == null ? 0 : orig.ptr & ~1);
19 RouteHop ret_hu_conv = new RouteHop(null, ret);
20 ret_hu_conv.ptrs_to.add(orig);
24 public byte[] get_pubkey() {
25 byte[] ret = bindings.RouteHop_get_pubkey(this.ptr);
29 public void set_pubkey(byte[] val) {
30 bindings.RouteHop_set_pubkey(this.ptr, val);
33 public NodeFeatures get_node_features() {
34 long ret = bindings.RouteHop_get_node_features(this.ptr);
35 NodeFeatures ret_hu_conv = new NodeFeatures(null, ret);
39 // Skipped RouteHop_set_node_features
40 public long get_short_channel_id() {
41 long ret = bindings.RouteHop_get_short_channel_id(this.ptr);
45 public void set_short_channel_id(long val) {
46 bindings.RouteHop_set_short_channel_id(this.ptr, val);
49 public ChannelFeatures get_channel_features() {
50 long ret = bindings.RouteHop_get_channel_features(this.ptr);
51 ChannelFeatures ret_hu_conv = new ChannelFeatures(null, ret);
55 // Skipped RouteHop_set_channel_features
56 public long get_fee_msat() {
57 long ret = bindings.RouteHop_get_fee_msat(this.ptr);
61 public void set_fee_msat(long val) {
62 bindings.RouteHop_set_fee_msat(this.ptr, val);
65 public int get_cltv_expiry_delta() {
66 int ret = bindings.RouteHop_get_cltv_expiry_delta(this.ptr);
70 public void set_cltv_expiry_delta(int val) {
71 bindings.RouteHop_set_cltv_expiry_delta(this.ptr, val);
74 // Skipped RouteHop_new