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