classlib: add String.formatted

This commit is contained in:
Alexey Andreev 2024-03-21 19:23:28 +01:00
parent da0eb4e1e3
commit 005765aa6e

View File

@ -880,6 +880,10 @@ public class TString extends TObject implements TSerializable, TComparable<TStri
return new TFormatter(l).format(format, args).toString(); return new TFormatter(l).format(format, args).toString();
} }
public String formatted(Object... args) {
return format((String) (Object) this, args);
}
public static TString join(CharSequence delimiter, CharSequence... elements) { public static TString join(CharSequence delimiter, CharSequence... elements) {
if (elements.length == 0) { if (elements.length == 0) {
return EMPTY; return EMPTY;