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