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-C-Bindings 0.0.123.1
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
structs
/
ChannelInfo.java
diff --git
a/src/main/java/org/ldk/structs/ChannelInfo.java
b/src/main/java/org/ldk/structs/ChannelInfo.java
index 864f64e2fa76f4a9944b504fe6c5f2d00abf1881..84b22d2304c59b01115d872b680bfe422b784cc4 100644
(file)
--- a/
src/main/java/org/ldk/structs/ChannelInfo.java
+++ b/
src/main/java/org/ldk/structs/ChannelInfo.java
@@
-37,7
+37,7
@@
public class ChannelInfo extends CommonBase {
* Protocol features of a channel communicated during its announcement
*/
public void set_features(org.ldk.structs.ChannelFeatures val) {
* Protocol features of a channel communicated during its announcement
*/
public void set_features(org.ldk.structs.ChannelFeatures val) {
- bindings.ChannelInfo_set_features(this.ptr, val
== null ? 0 : val
.ptr);
+ bindings.ChannelInfo_set_features(this.ptr, val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
if (this != null) { this.ptrs_to.add(val); };
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
if (this != null) { this.ptrs_to.add(val); };
@@
-59,7
+59,7
@@
public class ChannelInfo extends CommonBase {
* Source node of the first direction of a channel
*/
public void set_node_one(org.ldk.structs.NodeId val) {
* Source node of the first direction of a channel
*/
public void set_node_one(org.ldk.structs.NodeId val) {
- bindings.ChannelInfo_set_node_one(this.ptr, val
== null ? 0 : val
.ptr);
+ bindings.ChannelInfo_set_node_one(this.ptr, val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
if (this != null) { this.ptrs_to.add(val); };
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
if (this != null) { this.ptrs_to.add(val); };
@@
-108,7
+108,7
@@
public class ChannelInfo extends CommonBase {
* Source node of the second direction of a channel
*/
public void set_node_two(org.ldk.structs.NodeId val) {
* Source node of the second direction of a channel
*/
public void set_node_two(org.ldk.structs.NodeId val) {
- bindings.ChannelInfo_set_node_two(this.ptr, val
== null ? 0 : val
.ptr);
+ bindings.ChannelInfo_set_node_two(this.ptr, val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
if (this != null) { this.ptrs_to.add(val); };
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
if (this != null) { this.ptrs_to.add(val); };
@@
-160,6
+160,7
@@
public class ChannelInfo extends CommonBase {
bindings.ChannelInfo_set_capacity_sats(this.ptr, val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
bindings.ChannelInfo_set_capacity_sats(this.ptr, val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
+ if (this != null) { this.ptrs_to.add(val); };
}
/**
}
/**
@@
-219,7
+220,7
@@
public class ChannelInfo extends CommonBase {
* Two objects with NULL inner values will be considered "equal" here.
*/
public boolean eq(org.ldk.structs.ChannelInfo b) {
* Two objects with NULL inner values will be considered "equal" here.
*/
public boolean eq(org.ldk.structs.ChannelInfo b) {
- boolean ret = bindings.ChannelInfo_eq(this.ptr, b
== null ? 0 : b
.ptr);
+ boolean ret = bindings.ChannelInfo_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); };
@@
-246,6
+247,15
@@
public class ChannelInfo extends CommonBase {
return ret_hu_conv;
}
return ret_hu_conv;
}
+ /**
+ * Get the string representation of a ChannelInfo object
+ */
+ public String to_str() {
+ String ret = bindings.ChannelInfo_to_str(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
/**
* Serialize the ChannelInfo object into a byte array which can be read by ChannelInfo_read
*/
/**
* Serialize the ChannelInfo object into a byte array which can be read by ChannelInfo_read
*/