- public int get_proportional_millionths(RoutingFees this_ptr) {
- int ret = bindings.RoutingFees_get_proportional_millionths(this_ptr == null ? 0 : this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Constructs a new RoutingFees given each field
+ */
+ public static RoutingFees of(int base_msat_arg, int proportional_millionths_arg) {
+ long ret = bindings.RoutingFees_new(base_msat_arg, proportional_millionths_arg);
+ Reference.reachabilityFence(base_msat_arg);
+ Reference.reachabilityFence(proportional_millionths_arg);
+ 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(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * 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);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(b);
+ this.ptrs_to.add(b);