[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / UpdateFulfillHTLC.java
index 4f5565ab4bbb71935301a78fe7de757286a643b2..9e66df6f3c3ff387148a333a4c5e0ac7931f3ef8 100644 (file)
@@ -106,6 +106,23 @@ public class UpdateFulfillHTLC extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two UpdateFulfillHTLCs 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(UpdateFulfillHTLC b) {
+               boolean ret = bindings.UpdateFulfillHTLC_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 UpdateFulfillHTLC)) return false;
+               return this.eq((UpdateFulfillHTLC)o);
+       }
        /**
         * Serialize the UpdateFulfillHTLC object into a byte array which can be read by UpdateFulfillHTLC_read
         */