T - public class DefaultFormatter<T> extends java.lang.Object implements ArgumentFormatter<T>, Formatter<T>
String.valueOf(Object),
except for arrays where Arrays.deepToString(Object[]) is used.| Modifier and Type | Field and Description |
|---|---|
static DefaultFormatter |
INSTANCE |
| Constructor and Description |
|---|
DefaultFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(T argumentToFormat) |
java.lang.String |
format(T argumentToFormat,
java.lang.annotation.Annotation... annotations)
Formats a step method argument.
|
java.lang.String |
format(T argumentToFormat,
java.lang.String... formatterArguments)
Format a single argument by taking optional formatter arguments into account.
|
public static final DefaultFormatter INSTANCE
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.public java.lang.String format(T argumentToFormat, java.lang.annotation.Annotation... annotations)
Formatterpublic java.lang.String format(T argumentToFormat)