Update auto-generated bindings to 0.0.103
[ldk-java] / src / main / java / org / ldk / structs / TwoTuple_usizeTransactionZ.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 import javax.annotation.Nullable;
8
9
10 /**
11  * A Tuple
12  */
13 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
14 public class TwoTuple_usizeTransactionZ extends CommonBase {
15         TwoTuple_usizeTransactionZ(Object _dummy, long ptr) { super(ptr); }
16         @Override @SuppressWarnings("deprecation")
17         protected void finalize() throws Throwable {
18                 super.finalize();
19                 if (ptr != 0) { bindings.C2Tuple_usizeTransactionZ_free(ptr); }
20         }
21
22         /**
23          * 
24          */
25         public long get_a() {
26                 long ret = bindings.C2Tuple_usizeTransactionZ_get_a(this.ptr);
27                 return ret;
28         }
29
30         /**
31          * 
32          */
33         public byte[] get_b() {
34                 byte[] ret = bindings.C2Tuple_usizeTransactionZ_get_b(this.ptr);
35                 return ret;
36         }
37
38         /**
39          * Creates a new tuple which has the same data as `orig`
40          * but with all dynamically-allocated buffers duplicated in new buffers.
41          */
42         public TwoTuple_usizeTransactionZ clone() {
43                 long ret = bindings.C2Tuple_usizeTransactionZ_clone(this.ptr);
44                 if (ret >= 0 && ret <= 4096) { return null; }
45                 TwoTuple_usizeTransactionZ ret_hu_conv = new TwoTuple_usizeTransactionZ(null, ret);
46                 ret_hu_conv.ptrs_to.add(this);
47                 return ret_hu_conv;
48         }
49
50         /**
51          * Creates a new C2Tuple_usizeTransactionZ from the contained elements.
52          */
53         public static TwoTuple_usizeTransactionZ of(long a, byte[] b) {
54                 long ret = bindings.C2Tuple_usizeTransactionZ_new(a, b);
55                 if (ret >= 0 && ret <= 4096) { return null; }
56                 TwoTuple_usizeTransactionZ ret_hu_conv = new TwoTuple_usizeTransactionZ(null, ret);
57                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
58                 return ret_hu_conv;
59         }
60
61 }