public final static class Some extends Option_u64Z {
public final long some;
private Some(long ptr, bindings.LDKCOption_u64Z.Some obj) {
public final static class Some extends Option_u64Z {
public final long some;
private Some(long ptr, bindings.LDKCOption_u64Z.Some obj) {
public final static class None extends Option_u64Z {
private None(long ptr, bindings.LDKCOption_u64Z.None obj) {
super(null, ptr);
public final static class None extends Option_u64Z {
private None(long ptr, bindings.LDKCOption_u64Z.None obj) {
super(null, ptr);
- Option_u64Z ret_hu_conv = Option_u64Z.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
public static Option_u64Z none() {
long ret = bindings.COption_u64Z_none();
if (ret >= 0 && ret <= 4096) { return null; }
public static Option_u64Z none() {
long ret = bindings.COption_u64Z_none();
if (ret >= 0 && ret <= 4096) { return null; }
- Option_u64Z ret_hu_conv = Option_u64Z.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
/**
* Creates a new COption_u64Z which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public Option_u64Z clone() {
long ret = bindings.COption_u64Z_clone(this.ptr);
/**
* Creates a new COption_u64Z which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public Option_u64Z clone() {
long ret = bindings.COption_u64Z_clone(this.ptr);
- Option_u64Z ret_hu_conv = Option_u64Z.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(this);
+ org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };