3 ms·
Not sure where should I give this minor heads up regarding the JEP: StringProcessor INTER = (StringTemplate st) -> { String placeHolder = "•"; St
by kaba0 4y ago
Not sure where should I give this minor heads up regarding the JEP:
StringProcessor INTER = (StringTemplate st) -> {
String placeHolder = "•";
String stencil = String.join(placeHolder, fragments);
for (Object value : st.values()) {
String v = String.valueOf(value);
stencil = stencil.replaceFirst(placeHolder, v);
}
return stencil;
};
‘fragments’ should be ‘st.fragments()’ here I believe to make it compile.