[Java] Update auto-generated bindings to 0.0.115
[ldk-java] / src / main / java / org / ldk / structs / ChannelTransactionParameters.java
index be9f47f656f814438388f43c0a6aa6496ed0bf67..acf94ee71d198965ac047ea90b845f8bae2184e0 100644 (file)
@@ -221,6 +221,23 @@ public class ChannelTransactionParameters extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two ChannelTransactionParameterss 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(org.ldk.structs.ChannelTransactionParameters b) {
+               boolean ret = bindings.ChannelTransactionParameters_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 ChannelTransactionParameters)) return false;
+               return this.eq((ChannelTransactionParameters)o);
+       }
        /**
         * Whether the late bound parameters are populated.
         */