Package com.tngtech.jgiven.format
Class PrintfAnnotationFormatter
- java.lang.Object
-
- com.tngtech.jgiven.format.PrintfAnnotationFormatter
-
- All Implemented Interfaces:
AnnotationArgumentFormatter<Formatf>
public class PrintfAnnotationFormatter extends java.lang.Object implements AnnotationArgumentFormatter<Formatf>
AnnotationArgumentFormatter
that is used by theFormatf
annotation
-
-
Constructor Summary
Constructors Constructor Description PrintfAnnotationFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.lang.Object argumentToFormat, Formatf annotation)
Format a single argument by taking the given annotation into account.
-
-
-
Method Detail
-
format
public java.lang.String format(java.lang.Object argumentToFormat, Formatf annotation)
Description copied from interface:AnnotationArgumentFormatter
Format a single argument by taking the given annotation into account.- Specified by:
format
in interfaceAnnotationArgumentFormatter<Formatf>
- Parameters:
argumentToFormat
- the object to formatannotation
- the annotation the parameter was annotated with- Returns:
- a formatted string
-
-