public final static class Some extends Option_u32Z {
public final int some;
private Some(long ptr, bindings.LDKCOption_u32Z.Some obj) {
public final static class Some extends Option_u32Z {
public final int some;
private Some(long ptr, bindings.LDKCOption_u32Z.Some obj) {
public final static class None extends Option_u32Z {
private None(long ptr, bindings.LDKCOption_u32Z.None obj) {
super(null, ptr);
public final static class None extends Option_u32Z {
private None(long ptr, bindings.LDKCOption_u32Z.None obj) {
super(null, ptr);
if (ret >= 0 && ret <= 4096) { return null; }
Option_u32Z ret_hu_conv = Option_u32Z.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
if (ret >= 0 && ret <= 4096) { return null; }
Option_u32Z ret_hu_conv = Option_u32Z.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
/**
* Creates a new COption_u32Z which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public Option_u32Z clone() {
long ret = bindings.COption_u32Z_clone(this.ptr);
/**
* Creates a new COption_u32Z which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public Option_u32Z clone() {
long ret = bindings.COption_u32Z_clone(this.ptr);
if (ret >= 0 && ret <= 4096) { return null; }
Option_u32Z ret_hu_conv = Option_u32Z.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(this);
if (ret >= 0 && ret <= 4096) { return null; }
Option_u32Z ret_hu_conv = Option_u32Z.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(this);