+ Reference.reachabilityFence(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.Fallback ret_hu_conv = org.ldk.structs.Fallback.constr_from_ptr(ret);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new SegWitProgram-variant Fallback
+ */
+ public static Fallback seg_wit_program(org.ldk.util.WitnessVersion version, byte[] program) {
+ long ret = bindings.Fallback_seg_wit_program(version.getVal(), program);
+ Reference.reachabilityFence(version);
+ Reference.reachabilityFence(program);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.Fallback ret_hu_conv = org.ldk.structs.Fallback.constr_from_ptr(ret);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new PubKeyHash-variant Fallback
+ */
+ public static Fallback pub_key_hash(byte[] a) {
+ long ret = bindings.Fallback_pub_key_hash(InternalUtils.check_arr_len(a, 20));
+ Reference.reachabilityFence(a);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.Fallback ret_hu_conv = org.ldk.structs.Fallback.constr_from_ptr(ret);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };