Class RowFormatter

    • Constructor Summary

      Constructors 
      Constructor Description
      RowFormatter()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.util.List<java.lang.String> formatRow​(java.lang.Object object)
      Generates a single row of the data table for the given object.
      abstract java.util.List<java.lang.String> header()
      Generates the header row of the data table
      java.util.List<java.util.List<java.lang.String>> postProcess​(java.util.List<java.util.List<java.lang.String>> table)
      Allows for post processing the resulting data table.
      • Methods inherited from class java.lang.Object

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

      • RowFormatter

        public RowFormatter()
    • Method Detail

      • header

        public abstract java.util.List<java.lang.String> header()
        Generates the header row of the data table
      • formatRow

        public abstract java.util.List<java.lang.String> formatRow​(java.lang.Object object)
        Generates a single row of the data table for the given object. This method is called for each object of the input.
      • postProcess

        public java.util.List<java.util.List<java.lang.String>> postProcess​(java.util.List<java.util.List<java.lang.String>> table)
        Allows for post processing the resulting data table. The default implementation just returns the provided list
        Parameters:
        table - the table that has been generated by calls to the header() and the formatRow(Object) methods
        Returns:
        a potentially new table or just the passed table