}
/**
- * 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);
* 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); };
}
/**
- * 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);
}
/**
- * 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);