return ret_hu_conv;
}
+ /**
+ * Checks if two PaymentPurposes contain equal inner contents.
+ * This ignores pointers and is_owned flags and looks at the values in fields.
+ */
+ public boolean eq(org.ldk.structs.PaymentPurpose b) {
+ boolean ret = bindings.PaymentPurpose_eq(this.ptr, b == null ? 0 : b.ptr);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(b);
+ return ret;
+ }
+
+ @Override public boolean equals(Object o) {
+ if (!(o instanceof PaymentPurpose)) return false;
+ return this.eq((PaymentPurpose)o);
+ }
/**
* Serialize the PaymentPurpose object into a byte array which can be read by PaymentPurpose_read
*/