]> git.bitcoin.ninja Git - ldk-java/blob - src/main/java/org/ldk/structs/RouteHop.java
Fix race in tests
[ldk-java] / src / main / java / org / ldk / structs / RouteHop.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5 import org.ldk.util.*;
6 import java.util.Arrays;
7
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 {
13                 super.finalize();
14                 if (ptr != 0) { bindings.RouteHop_free(ptr); }
15         }
16
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);
21                 return ret_hu_conv;
22         }
23
24         public byte[] get_pubkey() {
25                 byte[] ret = bindings.RouteHop_get_pubkey(this.ptr);
26                 return ret;
27         }
28
29         public void set_pubkey(byte[] val) {
30                 bindings.RouteHop_set_pubkey(this.ptr, val);
31         }
32
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);
36                 return ret_hu_conv;
37         }
38
39         // Skipped RouteHop_set_node_features
40         public long get_short_channel_id() {
41                 long ret = bindings.RouteHop_get_short_channel_id(this.ptr);
42                 return ret;
43         }
44
45         public void set_short_channel_id(long val) {
46                 bindings.RouteHop_set_short_channel_id(this.ptr, val);
47         }
48
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);
52                 return ret_hu_conv;
53         }
54
55         // Skipped RouteHop_set_channel_features
56         public long get_fee_msat() {
57                 long ret = bindings.RouteHop_get_fee_msat(this.ptr);
58                 return ret;
59         }
60
61         public void set_fee_msat(long val) {
62                 bindings.RouteHop_set_fee_msat(this.ptr, val);
63         }
64
65         public int get_cltv_expiry_delta() {
66                 int ret = bindings.RouteHop_get_cltv_expiry_delta(this.ptr);
67                 return ret;
68         }
69
70         public void set_cltv_expiry_delta(int val) {
71                 bindings.RouteHop_set_cltv_expiry_delta(this.ptr, val);
72         }
73
74         // Skipped RouteHop_new
75 }