Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / TwoTuple_u32ScriptZ.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_u32ScriptZ extends CommonBase {
15         TwoTuple_u32ScriptZ(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_u32ScriptZ_free(ptr); }
20         }
21
22         /**
23          * 
24          */
25         public int get_a() {
26                 int ret = bindings.C2Tuple_u32ScriptZ_get_a(this.ptr);
27                 return ret;
28         }
29
30         /**
31          * 
32          */
33         public byte[] get_b() {
34                 byte[] ret = bindings.C2Tuple_u32ScriptZ_get_b(this.ptr);
35                 return ret;
36         }
37
38         long clone_ptr() {
39                 long ret = bindings.C2Tuple_u32ScriptZ_clone_ptr(this.ptr);
40                 return ret;
41         }
42
43         /**
44          * Creates a new tuple which has the same data as `orig`
45          * but with all dynamically-allocated buffers duplicated in new buffers.
46          */
47         public TwoTuple_u32ScriptZ clone() {
48                 long ret = bindings.C2Tuple_u32ScriptZ_clone(this.ptr);
49                 if (ret >= 0 && ret <= 4096) { return null; }
50                 TwoTuple_u32ScriptZ ret_hu_conv = new TwoTuple_u32ScriptZ(null, ret);
51                 ret_hu_conv.ptrs_to.add(this);
52                 return ret_hu_conv;
53         }
54
55         /**
56          * Creates a new C2Tuple_u32ScriptZ from the contained elements.
57          */
58         public static TwoTuple_u32ScriptZ of(int a, byte[] b) {
59                 long ret = bindings.C2Tuple_u32ScriptZ_new(a, b);
60                 if (ret >= 0 && ret <= 4096) { return null; }
61                 TwoTuple_u32ScriptZ ret_hu_conv = new TwoTuple_u32ScriptZ(null, ret);
62                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
63                 return ret_hu_conv;
64         }
65
66 }