1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
12 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
13 public class PayeePubKey extends CommonBase {
14 PayeePubKey(Object _dummy, long ptr) { super(ptr); }
15 @Override @SuppressWarnings("deprecation")
16 protected void finalize() throws Throwable {
18 if (ptr != 0) { bindings.PayeePubKey_free(ptr); }
22 * Checks if two PayeePubKeys 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(PayeePubKey b) {
27 boolean ret = bindings.PayeePubKey_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
33 * Creates a copy of the PayeePubKey
35 public PayeePubKey clone() {
36 long ret = bindings.PayeePubKey_clone(this.ptr);
37 PayeePubKey ret_hu_conv = new PayeePubKey(null, ret);
38 ret_hu_conv.ptrs_to.add(this);