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| 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.
|
java.lang.String format(T argumentToFormat, java.lang.String... formatterArguments)
argumentToFormat - the object to formatformatterArguments - optional arguments for the formatter to control the formatting.