- public static RoutingFees constructor_read(byte[] ser) {
- long ret = bindings.RoutingFees_read(ser);
- RoutingFees ret_hu_conv = new RoutingFees(null, ret);
+ /**
+ * Checks if two RoutingFeess 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(RoutingFees b) {
+ boolean ret = bindings.RoutingFees_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+ this.ptrs_to.add(b);
+ return ret;
+ }
+
+ /**
+ * Creates a copy of the RoutingFees
+ */
+ public RoutingFees clone() {
+ long ret = bindings.RoutingFees_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RoutingFees(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);