+ /**
+ * Checks if two NodeAnnouncementInfos contain equal inner contents.
+ * This ignores pointers and is_owned flags and looks at the values in fields.
+ * Two objects with NULL inner values will be considered "equal" here.
+ */
+ public boolean eq(org.ldk.structs.NodeAnnouncementInfo b) {
+ boolean ret = bindings.NodeAnnouncementInfo_eq(this.ptr, b == null ? 0 : b.ptr);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(b);
+ if (this != null) { this.ptrs_to.add(b); };
+ return ret;
+ }
+
+ @Override public boolean equals(Object o) {
+ if (!(o instanceof NodeAnnouncementInfo)) return false;
+ return this.eq((NodeAnnouncementInfo)o);
+ }
+ /**
+ * Internet-level addresses via which one can connect to the node
+ */
+ public SocketAddress[] addresses() {
+ long[] ret = bindings.NodeAnnouncementInfo_addresses(this.ptr);
+ Reference.reachabilityFence(this);
+ int ret_conv_15_len = ret.length;
+ SocketAddress[] ret_conv_15_arr = new SocketAddress[ret_conv_15_len];
+ for (int p = 0; p < ret_conv_15_len; p++) {
+ long ret_conv_15 = ret[p];
+ org.ldk.structs.SocketAddress ret_conv_15_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(ret_conv_15);
+ if (ret_conv_15_hu_conv != null) { ret_conv_15_hu_conv.ptrs_to.add(this); };
+ ret_conv_15_arr[p] = ret_conv_15_hu_conv;
+ }
+ return ret_conv_15_arr;
+ }
+