X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FExpiryTime.java;h=a124b567a482166f1a936fe1c1e5012994859cb7;hb=ffdd56c967087cba7548599934585b8a9a3102e2;hp=a187cb5073b930b357eac7e7ee9eecb4a5afeac2;hpb=f385eff0dd0aa61fbf21ae946c424f4a6a26de04;p=ldk-java diff --git a/src/main/java/org/ldk/structs/ExpiryTime.java b/src/main/java/org/ldk/structs/ExpiryTime.java index a187cb50..a124b567 100644 --- a/src/main/java/org/ldk/structs/ExpiryTime.java +++ b/src/main/java/org/ldk/structs/ExpiryTime.java @@ -40,7 +40,7 @@ public class ExpiryTime extends 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); @@ -56,8 +56,8 @@ public class ExpiryTime extends CommonBase { * 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); }; @@ -81,7 +81,7 @@ public class ExpiryTime extends CommonBase { } /** - * Construct an `ExpiryTime` from a `Duration`. + * 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); @@ -102,7 +102,7 @@ public class ExpiryTime extends 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);