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;
11 * Recoverable signature
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 {
19 if (ptr != 0) { bindings.InvoiceSignature_free(ptr); }
23 * Checks if two InvoiceSignatures contain equal inner contents.
24 * This ignores pointers and is_owned flags and looks at the values in fields.
25 * Two objects with NULL inner values will be considered "equal" here.
27 public boolean eq(InvoiceSignature b) {
28 boolean ret = bindings.InvoiceSignature_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
34 * Creates a copy of the InvoiceSignature
36 public InvoiceSignature clone() {
37 long ret = bindings.InvoiceSignature_clone(this.ptr);
38 if (ret < 1024) { return null; }
39 InvoiceSignature ret_hu_conv = new InvoiceSignature(null, ret);
40 ret_hu_conv.ptrs_to.add(this);