mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
classlib: add String.formatted
This commit is contained in:
parent
da0eb4e1e3
commit
005765aa6e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user