public class PrintfFormatter extends java.lang.Object implements ArgumentFormatter<java.lang.Object>
Constructor and Description |
---|
PrintfFormatter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Object o,
java.lang.String... args)
Format a single argument by taking optional formatter arguments into account.
|
public java.lang.String format(java.lang.Object o, java.lang.String... args)
ArgumentFormatter
format
in interface ArgumentFormatter<java.lang.Object>
o
- the object to formatargs
- optional arguments for the formatter to control the formatting.