[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / TxCreationKeys.java
index 05126d0c83eadaa5a7ead1ff06b14f3c2bab3d40..e02ea66434847e5843bd0c985f5c5194a4509968 100644 (file)
@@ -140,6 +140,23 @@ public class TxCreationKeys extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two TxCreationKeyss 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(TxCreationKeys b) {
+               boolean ret = bindings.TxCreationKeys_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 TxCreationKeys)) return false;
+               return this.eq((TxCreationKeys)o);
+       }
        long clone_ptr() {
                long ret = bindings.TxCreationKeys_clone_ptr(this.ptr);
                Reference.reachabilityFence(this);