+ /**
+ * Utility method to constructs a new HintMaxHTLC-variant EffectiveCapacity
+ */
+ public static EffectiveCapacity hint_max_htlc(long amount_msat) {
+ long ret = bindings.EffectiveCapacity_hint_max_htlc(amount_msat);
+ Reference.reachabilityFence(amount_msat);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.EffectiveCapacity ret_hu_conv = org.ldk.structs.EffectiveCapacity.constr_from_ptr(ret);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
+ return ret_hu_conv;
+ }
+