X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FPrivateRoute.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FPrivateRoute.java;h=ae2872a10d688f897ecd696fe94310bfe2b0f689;hb=a7653cf8717b1f9df4d3f4c4bd0b1f50f3bbc230;hp=be446f1bbad8c6325e4636e2f262138981f245cc;hpb=fcf4198defb48c5fa122ece7f5e922d22bbeb813;p=ldk-java diff --git a/src/main/java/org/ldk/structs/PrivateRoute.java b/src/main/java/org/ldk/structs/PrivateRoute.java index be446f1b..ae2872a1 100644 --- a/src/main/java/org/ldk/structs/PrivateRoute.java +++ b/src/main/java/org/ldk/structs/PrivateRoute.java @@ -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 */