Interface AnnotationArgumentFormatter<T extends Annotation>

Type Parameters:
T - the type of the custom annotation
All Known Implementing Classes:
POJOAnnotationFormatter, PrintfAnnotationFormatter

public interface AnnotationArgumentFormatter<T extends Annotation>
Interface for defining a formatter for a custom annotation using the AnnotationFormat annotation.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    format(Object argumentToFormat, T annotation)
    Format a single argument by taking the given annotation into account.
  • Method Details

    • format

      String format(Object argumentToFormat, T annotation)
      Format a single argument by taking the given annotation into account.
      Parameters:
      argumentToFormat - the object to format
      annotation - the annotation the parameter was annotated with
      Returns:
      a formatted string