[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / DataLossProtect.java
index a4645845b795aafca162d37640b7157cda578d45..2b68a20a0cdc9c1a80cc3b7d969dcac97eca16d5 100644 (file)
@@ -92,4 +92,21 @@ public class DataLossProtect extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two DataLossProtects 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(DataLossProtect b) {
+               boolean ret = bindings.DataLossProtect_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 DataLossProtect)) return false;
+               return this.eq((DataLossProtect)o);
+       }
 }