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
-
Method Summary
-
Constructor Details
-
PrintfFormatter
public PrintfFormatter()
-
-
Method Details
-
format
Description copied from interface:ArgumentFormatter
Format a single argument by taking optional formatter arguments into account.- Specified by:
format
in interfaceArgumentFormatter<Object>
- Parameters:
o
- the object to formatargs
- optional arguments for the formatter to control the formatting.- Returns:
- a formatted string
-