}
/**
- * 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);
* 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);
+ public boolean eq(org.ldk.structs.ExpiryTime b) {
+ boolean ret = bindings.ExpiryTime_eq(this.ptr, b.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(b);
if (this != null) { this.ptrs_to.add(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);