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