com.tngtech.jgiven.format
Interface ArgumentFormatter<T>

Type Parameters:
T - the type of the object to format
All Known Implementing Classes:
BooleanFormatter, DefaultFormatter, NotFormatter, PrintfFormatter, StepFormatter.AnnotationBasedFormatter, TableFormatter

public interface ArgumentFormatter<T>

Interface for defining customer argument formatter.


Method Summary
 java.lang.String format(T argumentToFormat, java.lang.String... formatterArguments)
          Format a single argument by taking optional formatter arguments into account.
 

Method Detail

format

java.lang.String format(T argumentToFormat,
                        java.lang.String... formatterArguments)
Format a single argument by taking optional formatter arguments into account.

Parameters:
argumentToFormat - the object to format
formatterArguments - optional arguments for the formatter to control the formatting.
Returns:
a formatted string