Class 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.
      • 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 the given annotation 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