1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
7 import javax.annotation.Nullable;
13 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
14 public class TwoTuple_u32TxOutZ extends CommonBase {
15 TwoTuple_u32TxOutZ(Object _dummy, long ptr) { super(ptr); }
16 @Override @SuppressWarnings("deprecation")
17 protected void finalize() throws Throwable {
19 if (ptr != 0) { bindings.C2Tuple_u32TxOutZ_free(ptr); }
26 int ret = bindings.C2Tuple_u32TxOutZ_get_a(this.ptr);
33 public TxOut get_b() {
34 long ret = bindings.C2Tuple_u32TxOutZ_get_b(this.ptr);
35 if (ret >= 0 && ret <= 4096) { return null; }
36 TxOut ret_conv = new TxOut(null, ret);
41 long ret = bindings.C2Tuple_u32TxOutZ_clone_ptr(this.ptr);
46 * Creates a new tuple which has the same data as `orig`
47 * but with all dynamically-allocated buffers duplicated in new buffers.
49 public TwoTuple_u32TxOutZ clone() {
50 long ret = bindings.C2Tuple_u32TxOutZ_clone(this.ptr);
51 if (ret >= 0 && ret <= 4096) { return null; }
52 TwoTuple_u32TxOutZ ret_hu_conv = new TwoTuple_u32TxOutZ(null, ret);
53 ret_hu_conv.ptrs_to.add(this);
58 * Creates a new C2Tuple_u32TxOutZ from the contained elements.
60 public static TwoTuple_u32TxOutZ of(int a, TxOut b) {
61 long ret = bindings.C2Tuple_u32TxOutZ_new(a, b.ptr);
62 if (ret >= 0 && ret <= 4096) { return null; }
63 TwoTuple_u32TxOutZ ret_hu_conv = new TwoTuple_u32TxOutZ(null, ret);
64 ret_hu_conv.ptrs_to.add(ret_hu_conv);