[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / RoutingFees.java
index d1c885ff0a2694cc958e2429d581dad81d19bfac..6615c3b82cb6569f988300900850c55ff08fcace 100644 (file)
@@ -21,7 +21,7 @@ public class RoutingFees extends CommonBase {
        }
 
        /**
-        * Flat routing fee in satoshis
+        * Flat routing fee in millisatoshis.
         */
        public int get_base_msat() {
                int ret = bindings.RoutingFees_get_base_msat(this.ptr);
@@ -30,7 +30,7 @@ public class RoutingFees extends CommonBase {
        }
 
        /**
-        * Flat routing fee in satoshis
+        * Flat routing fee in millisatoshis.
         */
        public void set_base_msat(int val) {
                bindings.RoutingFees_set_base_msat(this.ptr, val);
@@ -66,8 +66,8 @@ public class RoutingFees extends CommonBase {
                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);
+               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;
        }
 
@@ -76,11 +76,11 @@ public class RoutingFees extends CommonBase {
         * 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);
+       public boolean eq(org.ldk.structs.RoutingFees b) {
+               boolean ret = bindings.RoutingFees_eq(this.ptr, b == null ? 0 : b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
-               this.ptrs_to.add(b);
+               if (this != null) { this.ptrs_to.add(b); };
                return ret;
        }
 
@@ -101,8 +101,8 @@ public class RoutingFees extends CommonBase {
                long ret = bindings.RoutingFees_clone(this.ptr);
                Reference.reachabilityFence(this);
                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);
+               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(this); };
                return ret_hu_conv;
        }