[C#] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
[ldk-java] / c_sharp / src / org / ldk / structs / ExpiryTime.cs
index 9f4a52855959e1a55bc0ee1f2de51579547df83a..bd8be08e8678569b4825e9942f1223381ab2cecc 100644 (file)
@@ -35,7 +35,7 @@ public class ExpiryTime : CommonBase {
        }
 
        /**
-        * Checks if two ExpiryTimes contain equal inner contents.
+        * Generates a non-cryptographic 64-bit hash of the ExpiryTime.
         */
        public long hash() {
                long ret = bindings.ExpiryTime_hash(this.ptr);
@@ -52,7 +52,7 @@ public class ExpiryTime : CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public bool eq(org.ldk.structs.ExpiryTime b) {
-               bool ret = bindings.ExpiryTime_eq(this.ptr, b == null ? 0 : b.ptr);
+               bool ret = bindings.ExpiryTime_eq(this.ptr, b.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(b);
                if (this != null) { this.ptrs_to.AddLast(b); };
@@ -76,7 +76,7 @@ public class ExpiryTime : CommonBase {
        }
 
        /**
-        * Construct an `ExpiryTime` from a `Duration`, dropping the sub-second part.
+        * Construct an `ExpiryTime` from a [`Duration`], dropping the sub-second part.
         */
        public static ExpiryTime from_duration(long duration) {
                long ret = bindings.ExpiryTime_from_duration(duration);
@@ -97,7 +97,7 @@ public class ExpiryTime : CommonBase {
        }
 
        /**
-        * Returns a reference to the underlying `Duration` (=expiry time)
+        * Returns a reference to the underlying [`Duration`] (=expiry time)
         */
        public long as_duration() {
                long ret = bindings.ExpiryTime_as_duration(this.ptr);