com.tngtech.jgiven.format
Class PrintfAnnotationFormatter

java.lang.Object
  extended by 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 the Formatf annotation


Constructor Summary
PrintfAnnotationFormatter()
           
 
Method Summary
 java.lang.String format(java.lang.Object argumentToFormat, Formatf annotation)
          Format a single argument by taking optional formatter arguments into account.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintfAnnotationFormatter

public PrintfAnnotationFormatter()
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 optional formatter arguments into account.

Specified by:
format in interface AnnotationArgumentFormatter<Formatf>
Parameters:
argumentToFormat - the object to format
annotation - the annotation the parameter was annotated with
Returns:
a formatted string