6 namespace org { namespace ldk { namespace structs {
10 * A [`NodeIdLookUp`] that always returns `None`.
12 public class EmptyNodeIdLookUp : CommonBase {
13 internal EmptyNodeIdLookUp(object _dummy, long ptr) : base(ptr) { }
14 ~EmptyNodeIdLookUp() {
15 if (ptr != 0) { bindings.EmptyNodeIdLookUp_free(ptr); }
19 * Constructs a new EmptyNodeIdLookUp given each field
21 public static EmptyNodeIdLookUp of() {
22 long ret = bindings.EmptyNodeIdLookUp_new();
23 if (ret >= 0 && ret <= 4096) { return null; }
24 org.ldk.structs.EmptyNodeIdLookUp ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.EmptyNodeIdLookUp(null, ret); }
25 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
30 * Constructs a new NodeIdLookUp which calls the relevant methods on this_arg.
31 * This copies the `inner` pointer in this_arg and thus the returned NodeIdLookUp must be freed before this_arg is
33 public NodeIdLookUp as_NodeIdLookUp() {
34 long ret = bindings.EmptyNodeIdLookUp_as_NodeIdLookUp(this.ptr);
36 if (ret >= 0 && ret <= 4096) { return null; }
37 NodeIdLookUp ret_hu_conv = new NodeIdLookUp(null, ret);
38 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };