feat: TextBuilder accepts varargs
This commit is contained in:
parent
c942c35263
commit
c22580be32
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue