[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / UnsignedChannelAnnouncement.java
index fc5f905a2ec4cc5f6ed4789b3e029b0b5687ded9..d042e41b80565c763d7caf0a566417c2c69f8119 100644 (file)
@@ -168,6 +168,23 @@ public class UnsignedChannelAnnouncement extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two UnsignedChannelAnnouncements 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(UnsignedChannelAnnouncement b) {
+               boolean ret = bindings.UnsignedChannelAnnouncement_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 UnsignedChannelAnnouncement)) return false;
+               return this.eq((UnsignedChannelAnnouncement)o);
+       }
        /**
         * Serialize the UnsignedChannelAnnouncement object into a byte array which can be read by UnsignedChannelAnnouncement_read
         */