feat: TextBuilder accepts varargs

This commit is contained in:
əlemi 2023-03-15 09:46:57 +01:00
parent c942c35263
commit c22580be32
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -33,8 +33,8 @@ public final class Text implements ICommons {
return new Text(); return new Text();
} }
public Text txt(String txt) { public Text txt(String txt, Object... arg) {
this.text = txt; this.text = String.format(txt, arg);
return this; return this;
} }