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();
}
public Text txt(String txt) {
this.text = txt;
public Text txt(String txt, Object... arg) {
this.text = String.format(txt, arg);
return this;
}