Package com.tngtech.jgiven.format
Interface AnnotationArgumentFormatter<T extends java.lang.annotation.Annotation>
-
- Type Parameters:
T
- the type of the custom annotation
- All Known Implementing Classes:
POJOAnnotationFormatter
,PrintfAnnotationFormatter
public interface AnnotationArgumentFormatter<T extends java.lang.annotation.Annotation>
Interface for defining a formatter for a custom annotation using theAnnotationFormat
annotation.- See Also:
AnnotationFormat
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
format(java.lang.Object argumentToFormat, T annotation)
Format a single argument by taking the given annotation into account.
-
-
-
Method Detail
-
format
java.lang.String format(java.lang.Object argumentToFormat, T annotation)
Format a single argument by taking the given annotation into account.- Parameters:
argumentToFormat
- the object to formatannotation
- the annotation the parameter was annotated with- Returns:
- a formatted string
-
-