T - public class DefaultFormatter<T> extends java.lang.Object implements ArgumentFormatter<T>
String.valueOf(Object),
except for arrays where Arrays.deepToString(Object[]) is used.| Constructor and Description |
|---|
DefaultFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(T argumentToFormat,
java.lang.String... formatterArguments)
Format a single argument by taking optional formatter arguments into account.
|
public java.lang.String format(T argumentToFormat, java.lang.String... formatterArguments)
ArgumentFormatterformat in interface ArgumentFormatter<T>argumentToFormat - the object to formatformatterArguments - optional arguments for the formatter to control the formatting.