com.tngtech.jgiven.format
Interface AnnotationArgumentFormatter<T extends java.lang.annotation.Annotation>

Type Parameters:
T - the type of the object to format
All Known Implementing Classes:
PrintfAnnotationFormatter

public interface AnnotationArgumentFormatter<T extends java.lang.annotation.Annotation>

Interface for defining customer argument formatter for a custom annotation.


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

Method Detail

format

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

Parameters:
argumentToFormat - the object to format
annotation - the annotation the parameter was annotated with
Returns:
a formatted string