[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / NetAddress.java
index 74ccb308db826e7627c35fb2dba03d0a742e2dfd..f4f729ffc3c11686e6441b9838faa6291613daae 100644 (file)
@@ -224,6 +224,21 @@ public class NetAddress extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two NetAddresss contain equal inner contents.
+        * This ignores pointers and is_owned flags and looks at the values in fields.
+        */
+       public boolean eq(NetAddress b) {
+               boolean ret = bindings.NetAddress_eq(this.ptr, b == null ? 0 : b.ptr);
+               Reference.reachabilityFence(this);
+               Reference.reachabilityFence(b);
+               return ret;
+       }
+
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof NetAddress)) return false;
+               return this.eq((NetAddress)o);
+       }
        /**
         * Serialize the NetAddress object into a byte array which can be read by NetAddress_read
         */