1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
7 import java.lang.ref.Reference;
8 import javax.annotation.Nullable;
12 * A [`NodeIdLookUp`] that always returns `None`.
14 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
15 public class EmptyNodeIdLookUp extends CommonBase {
16 EmptyNodeIdLookUp(Object _dummy, long ptr) { super(ptr); }
17 @Override @SuppressWarnings("deprecation")
18 protected void finalize() throws Throwable {
20 if (ptr != 0) { bindings.EmptyNodeIdLookUp_free(ptr); }
24 * Constructs a new EmptyNodeIdLookUp given each field
26 public static EmptyNodeIdLookUp of() {
27 long ret = bindings.EmptyNodeIdLookUp_new();
28 if (ret >= 0 && ret <= 4096) { return null; }
29 org.ldk.structs.EmptyNodeIdLookUp ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.EmptyNodeIdLookUp(null, ret); }
30 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
35 * Constructs a new NodeIdLookUp which calls the relevant methods on this_arg.
36 * This copies the `inner` pointer in this_arg and thus the returned NodeIdLookUp must be freed before this_arg is
38 public NodeIdLookUp as_NodeIdLookUp() {
39 long ret = bindings.EmptyNodeIdLookUp_as_NodeIdLookUp(this.ptr);
40 Reference.reachabilityFence(this);
41 if (ret >= 0 && ret <= 4096) { return null; }
42 NodeIdLookUp ret_hu_conv = new NodeIdLookUp(null, ret);
43 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };