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