Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / InvoiceSignature.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  * Recoverable signature
12  */
13 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
14 public class InvoiceSignature extends CommonBase {
15         InvoiceSignature(Object _dummy, long ptr) { super(ptr); }
16         @Override @SuppressWarnings("deprecation")
17         protected void finalize() throws Throwable {
18                 super.finalize();
19                 if (ptr != 0) { bindings.InvoiceSignature_free(ptr); }
20         }
21
22         long clone_ptr() {
23                 long ret = bindings.InvoiceSignature_clone_ptr(this.ptr);
24                 return ret;
25         }
26
27         /**
28          * Creates a copy of the InvoiceSignature
29          */
30         public InvoiceSignature clone() {
31                 long ret = bindings.InvoiceSignature_clone(this.ptr);
32                 if (ret >= 0 && ret <= 4096) { return null; }
33                 InvoiceSignature ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new InvoiceSignature(null, ret); }
34                 ret_hu_conv.ptrs_to.add(this);
35                 return ret_hu_conv;
36         }
37
38         /**
39          * Checks if two InvoiceSignatures contain equal inner contents.
40          * This ignores pointers and is_owned flags and looks at the values in fields.
41          * Two objects with NULL inner values will be considered "equal" here.
42          */
43         public boolean eq(InvoiceSignature b) {
44                 boolean ret = bindings.InvoiceSignature_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
45                 this.ptrs_to.add(b);
46                 return ret;
47         }
48
49 }