Package com.tngtech.jgiven.format
Class PrintfFormatter
java.lang.Object
com.tngtech.jgiven.format.PrintfFormatter
- All Implemented Interfaces:
ArgumentFormatter<Object>
Formatter to use a Java format string to format arguments.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PrintfFormatter
public PrintfFormatter()
-
-
Method Details
-
format
Description copied from interface:ArgumentFormatterFormat a single argument by taking optional formatter arguments into account.- Specified by:
formatin interfaceArgumentFormatter<Object>- Parameters:
o- the object to formatargs- optional arguments for the formatter to control the formatting.- Returns:
- a formatted string
-