@SuppressWarnings("unchecked") // We correctly assign various generic arrays
public class UnsignedChannelAnnouncement extends CommonBase {
UnsignedChannelAnnouncement(Object _dummy, long ptr) { super(ptr); }
@SuppressWarnings("unchecked") // We correctly assign various generic arrays
public class UnsignedChannelAnnouncement extends CommonBase {
UnsignedChannelAnnouncement(Object _dummy, long ptr) { super(ptr); }
public ChannelFeatures get_features() {
long ret = bindings.UnsignedChannelAnnouncement_get_features(this.ptr);
public ChannelFeatures get_features() {
long ret = bindings.UnsignedChannelAnnouncement_get_features(this.ptr);
- ChannelFeatures ret_hu_conv = new ChannelFeatures(null, ret);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ChannelFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ChannelFeatures(null, ret); }
public void set_features(ChannelFeatures val) {
bindings.UnsignedChannelAnnouncement_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
public void set_features(ChannelFeatures val) {
bindings.UnsignedChannelAnnouncement_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
public byte[] get_chain_hash() {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_chain_hash(this.ptr);
return ret;
}
public byte[] get_chain_hash() {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_chain_hash(this.ptr);
return ret;
}
public void set_chain_hash(byte[] val) {
bindings.UnsignedChannelAnnouncement_set_chain_hash(this.ptr, val);
}
public void set_chain_hash(byte[] val) {
bindings.UnsignedChannelAnnouncement_set_chain_hash(this.ptr, val);
}
public long get_short_channel_id() {
long ret = bindings.UnsignedChannelAnnouncement_get_short_channel_id(this.ptr);
return ret;
}
public long get_short_channel_id() {
long ret = bindings.UnsignedChannelAnnouncement_get_short_channel_id(this.ptr);
return ret;
}
public void set_short_channel_id(long val) {
bindings.UnsignedChannelAnnouncement_set_short_channel_id(this.ptr, val);
}
public void set_short_channel_id(long val) {
bindings.UnsignedChannelAnnouncement_set_short_channel_id(this.ptr, val);
}
public byte[] get_node_id_1() {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_node_id_1(this.ptr);
return ret;
}
public byte[] get_node_id_1() {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_node_id_1(this.ptr);
return ret;
}
public void set_node_id_1(byte[] val) {
bindings.UnsignedChannelAnnouncement_set_node_id_1(this.ptr, val);
}
public void set_node_id_1(byte[] val) {
bindings.UnsignedChannelAnnouncement_set_node_id_1(this.ptr, val);
}
public byte[] get_node_id_2() {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_node_id_2(this.ptr);
return ret;
}
public byte[] get_node_id_2() {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_node_id_2(this.ptr);
return ret;
}
public void set_node_id_2(byte[] val) {
bindings.UnsignedChannelAnnouncement_set_node_id_2(this.ptr, val);
}
public void set_node_id_2(byte[] val) {
bindings.UnsignedChannelAnnouncement_set_node_id_2(this.ptr, val);
}
public byte[] get_bitcoin_key_1() {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_bitcoin_key_1(this.ptr);
return ret;
}
public byte[] get_bitcoin_key_1() {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_bitcoin_key_1(this.ptr);
return ret;
}
public void set_bitcoin_key_1(byte[] val) {
bindings.UnsignedChannelAnnouncement_set_bitcoin_key_1(this.ptr, val);
}
public void set_bitcoin_key_1(byte[] val) {
bindings.UnsignedChannelAnnouncement_set_bitcoin_key_1(this.ptr, val);
}
public byte[] get_bitcoin_key_2() {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_bitcoin_key_2(this.ptr);
return ret;
}
public byte[] get_bitcoin_key_2() {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_bitcoin_key_2(this.ptr);
return ret;
}
public void set_bitcoin_key_2(byte[] val) {
bindings.UnsignedChannelAnnouncement_set_bitcoin_key_2(this.ptr, val);
}
public void set_bitcoin_key_2(byte[] val) {
bindings.UnsignedChannelAnnouncement_set_bitcoin_key_2(this.ptr, val);
}
public UnsignedChannelAnnouncement clone() {
long ret = bindings.UnsignedChannelAnnouncement_clone(this.ptr);
public UnsignedChannelAnnouncement clone() {
long ret = bindings.UnsignedChannelAnnouncement_clone(this.ptr);
- UnsignedChannelAnnouncement ret_hu_conv = new UnsignedChannelAnnouncement(null, ret);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ UnsignedChannelAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new UnsignedChannelAnnouncement(null, ret); }