1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
10 * Recoverable signature
12 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
13 public class InvoiceSignature extends CommonBase {
14 InvoiceSignature(Object _dummy, long ptr) { super(ptr); }
15 @Override @SuppressWarnings("deprecation")
16 protected void finalize() throws Throwable {
18 if (ptr != 0) { bindings.InvoiceSignature_free(ptr); }
22 * Checks if two InvoiceSignatures contain equal inner contents.
23 * This ignores pointers and is_owned flags and looks at the values in fields.
24 * Two objects with NULL inner values will be considered "equal" here.
26 public boolean eq(InvoiceSignature b) {
27 boolean ret = bindings.InvoiceSignature_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
33 * Creates a copy of the InvoiceSignature
35 public InvoiceSignature clone() {
36 long ret = bindings.InvoiceSignature_clone(this.ptr);
37 InvoiceSignature ret_hu_conv = new InvoiceSignature(null, ret);
38 ret_hu_conv.ptrs_to.add(this);