projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
structs
/
ExpiryTime.java
diff --git
a/src/main/java/org/ldk/structs/ExpiryTime.java
b/src/main/java/org/ldk/structs/ExpiryTime.java
index a187cb5073b930b357eac7e7ee9eecb4a5afeac2..a124b567a482166f1a936fe1c1e5012994859cb7 100644
(file)
--- 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);
*/
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.
*/
* 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); };
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);
*/
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);
*/
public long as_duration() {
long ret = bindings.ExpiryTime_as_duration(this.ptr);