Update auto-updated Java files
[ldk-java] / src / main / java / org / ldk / structs / RouteHop.java
index f2168f4b711a0c59b8802e4addc4f68414177111..82e3761689c85294cbde184c8f7c5ea508626d8f 100644 (file)
@@ -160,6 +160,9 @@ public class RouteHop extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two RouteHops contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -171,6 +174,10 @@ public class RouteHop extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof RouteHop)) return false;
+               return this.eq((RouteHop)o);
+       }
        /**
         * Serialize the RouteHop object into a byte array which can be read by RouteHop_read
         */