[Java] Update auto-generated Java bindings to LDK 0.0.121
[ldk-java] / src / main / java / org / ldk / structs / OnionMessage.java
index 68b2acd5604d90bda84e244cc8c4d9e4022d384d..c171b0a9f496564acc57bb49c831486296a46218 100644 (file)
@@ -92,6 +92,18 @@ public class OnionMessage extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the OnionMessage.
+        */
+       public long hash() {
+               long ret = bindings.OnionMessage_hash(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two OnionMessages contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.