Update auto-generated bindings to 0.0.101
[ldk-java] / src / main / java / org / ldk / structs / PrivateRoute.java
index be446f1bbad8c6325e4636e2f262138981f245cc..ae2872a10d688f897ecd696fe94310bfe2b0f689 100644 (file)
@@ -22,17 +22,6 @@ public class PrivateRoute extends CommonBase {
                if (ptr != 0) { bindings.PrivateRoute_free(ptr); }
        }
 
-       /**
-        * Checks if two PrivateRoutes 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(PrivateRoute b) {
-               boolean ret = bindings.PrivateRoute_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
-               this.ptrs_to.add(b);
-               return ret;
-       }
-
        /**
         * Creates a copy of the PrivateRoute
         */
@@ -44,6 +33,25 @@ public class PrivateRoute extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two PrivateRoutes contain equal inner contents.
+        */
+       public long hash() {
+               long ret = bindings.PrivateRoute_hash(this.ptr);
+               return ret;
+       }
+
+       /**
+        * Checks if two PrivateRoutes 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(PrivateRoute b) {
+               boolean ret = bindings.PrivateRoute_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               this.ptrs_to.add(b);
+               return ret;
+       }
+
        /**
         * Creates a new (partial) route from a list of hops
         */