[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / ChannelInfo.java
index db9f3589bac668671062d87ce8f165f48b7d6f05..ea695c3d3938ffadb8619c7e070e61811acb5348 100644 (file)
@@ -213,6 +213,23 @@ public class ChannelInfo extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two ChannelInfos 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(ChannelInfo b) {
+               boolean ret = bindings.ChannelInfo_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 ChannelInfo)) return false;
+               return this.eq((ChannelInfo)o);
+       }
        /**
         * Returns a [`ChannelUpdateInfo`] based on the direction implied by the channel_flag.
         *