T
- the type of the object to formatpublic interface ArgumentFormatter<T>
Format
annotation.
Note that in many cases it is more convenient to define a custom formatter annotation using the AnnotationFormat
annotation and defining an AnnotationArgumentFormatter
.
Alternatively you can also provide a global formatter for a type (see Formatter
).
Format
java.lang.String format(T argumentToFormat, java.lang.String... formatterArguments)
argumentToFormat
- the object to formatformatterArguments
- optional arguments for the formatter to control the formatting.