Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / RouteHint.java
index f13f5c14a907a27a4e80f01659cf1ac2e7a949ef..fda754244291df907eecd680e2981f3ba99fbf97 100644 (file)
@@ -4,6 +4,7 @@ import org.ldk.impl.bindings;
 import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
+import javax.annotation.Nullable;
 
 
 /**
@@ -18,6 +19,25 @@ public class RouteHint extends CommonBase {
                if (ptr != 0) { bindings.RouteHint_free(ptr); }
        }
 
+       /**
+        * Creates a copy of the RouteHint
+        */
+       public RouteHint clone() {
+               long ret = bindings.RouteHint_clone(this.ptr);
+               if (ret < 1024) { return null; }
+               RouteHint ret_hu_conv = new RouteHint(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
+       /**
+        * Checks if two RouteHints contain equal inner contents.
+        */
+       public long hash() {
+               long ret = bindings.RouteHint_hash(this.ptr);
+               return ret;
+       }
+
        /**
         * Checks if two RouteHints contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -29,14 +49,4 @@ public class RouteHint extends CommonBase {
                return ret;
        }
 
-       /**
-        * Creates a copy of the RouteHint
-        */
-       public RouteHint clone() {
-               long ret = bindings.RouteHint_clone(this.ptr);
-               RouteHint ret_hu_conv = new RouteHint(null, ret);
-               ret_hu_conv.ptrs_to.add(this);
-               return ret_hu_conv;
-       }
-
 }