[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / ParseError.java
index 4db3af08436d6e6283cff7e5fc4e8db5b80bbedf..4fcdc2a77d8e4c3fe51aead02af6849791c4dff4 100644 (file)
@@ -411,6 +411,21 @@ public class ParseError extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two ParseErrors contain equal inner contents.
+        * This ignores pointers and is_owned flags and looks at the values in fields.
+        */
+       public boolean eq(ParseError b) {
+               boolean ret = bindings.ParseError_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 ParseError)) return false;
+               return this.eq((ParseError)o);
+       }
        /**
         * Get the string representation of a ParseError object
         */