Class Reporter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NEWLINE  
      static java.lang.String TAB  
    • Constructor Summary

      Constructors 
      Constructor Description
      Reporter​(java.lang.Class<? extends FeatureInstaller> type, java.lang.String title)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Reporter emptyLine()
      Prints empty line.
      Reporter line​(java.lang.String line, java.lang.Object... args)
      Prints formatted line.
      void report()
      Prints composed report into logger or do nothing if no lines were provided.
      Reporter separate()
      Writes empty line if something was printed before and it was not emptyLine().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NEWLINE

        public static final java.lang.String NEWLINE
    • Constructor Detail

      • Reporter

        public Reporter​(java.lang.Class<? extends FeatureInstaller> type,
                        java.lang.String title)
    • Method Detail

      • line

        public final Reporter line​(java.lang.String line,
                                   java.lang.Object... args)
        Prints formatted line.
        Parameters:
        line - line with String.format syntax
        args - message arguments
        Returns:
        reporter instance
      • emptyLine

        public final Reporter emptyLine()
        Prints empty line.
        Returns:
        reporter instance
      • separate

        public final Reporter separate()
        Writes empty line if something was printed before and it was not emptyLine().
        Returns:
        reporter instance
      • report

        public void report()
        Prints composed report into logger or do nothing if no lines were provided.