- public int get_proportional_millionths(RoutingFees this_ptr) {
- int ret = bindings.RoutingFees_get_proportional_millionths(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; }
+ org.ldk.structs.RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RoutingFees(null, ret); }
+ if (ret_hu_conv != null) { 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);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(b);
+ if (this != null) { this.ptrs_to.add(b); };