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