Update auto-generated bindings to 0.0.101
[ldk-java] / src / main / java / org / ldk / structs / RouteHint.java
index 33753cf85ce37ebfb0a120d2bf573a22cab48dba..fda754244291df907eecd680e2981f3ba99fbf97 100644 (file)
@@ -19,17 +19,6 @@ public class RouteHint extends CommonBase {
                if (ptr != 0) { bindings.RouteHint_free(ptr); }
        }
 
-       /**
-        * Checks if two RouteHints 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(RouteHint b) {
-               boolean ret = bindings.RouteHint_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
-               this.ptrs_to.add(b);
-               return ret;
-       }
-
        /**
         * Creates a copy of the RouteHint
         */
@@ -41,4 +30,23 @@ public class RouteHint extends CommonBase {
                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.
+        * Two objects with NULL inner values will be considered "equal" here.
+        */
+       public boolean eq(RouteHint b) {
+               boolean ret = bindings.RouteHint_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               this.ptrs_to.add(b);
+               return ret;
+       }
+
 }