[Java] Update auto-generated Java files
[ldk-java] / src / main / java / org / ldk / structs / PositiveTimestamp.java
index cb2de852cbdd16e5d66b54e35f26fbe53c79fef2..03b0cbd1a08ed8865ecec8d2e3fd59c543b2e0bb 100644 (file)
@@ -60,6 +60,18 @@ public class PositiveTimestamp extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two PositiveTimestamps contain equal inner contents.
+        */
+       public long hash() {
+               long ret = bindings.PositiveTimestamp_hash(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Creates a `PositiveTimestamp` from a Unix timestamp in the range `0..=MAX_TIMESTAMP`.
         *