Update auto-generated bindings to 0.0.101
[ldk-java] / src / main / java / org / ldk / structs / ExpiryTime.java
index e88c139340bfeab24c693ca3d0192289a655b0b4..4c1c918306db8610d3c9d6116471c1f6a612958c 100644 (file)
@@ -25,17 +25,6 @@ public class ExpiryTime extends CommonBase {
                if (ptr != 0) { bindings.ExpiryTime_free(ptr); }
        }
 
-       /**
-        * Checks if two ExpiryTimes 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(ExpiryTime b) {
-               boolean ret = bindings.ExpiryTime_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
-               this.ptrs_to.add(b);
-               return ret;
-       }
-
        /**
         * Creates a copy of the ExpiryTime
         */
@@ -47,6 +36,25 @@ public class ExpiryTime extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two ExpiryTimes contain equal inner contents.
+        */
+       public long hash() {
+               long ret = bindings.ExpiryTime_hash(this.ptr);
+               return ret;
+       }
+
+       /**
+        * Checks if two ExpiryTimes 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(ExpiryTime b) {
+               boolean ret = bindings.ExpiryTime_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               this.ptrs_to.add(b);
+               return ret;
+       }
+
        /**
         * Construct an `ExpiryTime` from seconds. If there exists a `PositiveTimestamp` which would
         * overflow on adding the `EpiryTime` to it then this function will return a