[Java] Update auto-generated bindings to 0.0.105.0
[ldk-java] / src / main / java / org / ldk / structs / ScoringParameters.java
index d0360a5b981b0f49bf22142dabbdf6fd4df1bf91..5a80f7a52e28108b7fd7c719b4b3c5bed81c1775 100644 (file)
@@ -138,6 +138,8 @@ public class ScoringParameters extends CommonBase {
         * 
         * Successfully routing through a channel will immediately cut the penalty in half as well.
         * 
+        * Default value: 1 hour
+        * 
         * # Note
         * 
         * When built with the `no-std` feature, time will never elapse. Therefore, this penalty will
@@ -157,6 +159,8 @@ public class ScoringParameters extends CommonBase {
         * 
         * Successfully routing through a channel will immediately cut the penalty in half as well.
         * 
+        * Default value: 1 hour
+        * 
         * # Note
         * 
         * When built with the `no-std` feature, time will never elapse. Therefore, this penalty will
@@ -186,6 +190,24 @@ public class ScoringParameters extends CommonBase {
                return ret_hu_conv;
        }
 
+       long clone_ptr() {
+               long ret = bindings.ScoringParameters_clone_ptr(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       /**
+        * Creates a copy of the ScoringParameters
+        */
+       public ScoringParameters clone() {
+               long ret = bindings.ScoringParameters_clone(this.ptr);
+               Reference.reachabilityFence(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               ScoringParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ScoringParameters(null, ret); }
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
        /**
         * Serialize the ScoringParameters object into a byte array which can be read by ScoringParameters_read
         */