Class TradeReportFormatter

    • Field Detail

      • INSTANCE

        public static final TradeReportFormatter INSTANCE
        The single shared instance of this report formatter.
    • Method Detail

      • getColumnTypes

        protected java.util.List<java.lang.Class<?>> getColumnTypes​(TradeReport report)
        Description copied from class: ReportFormatter
        Gets the type of the data in each report column.

        If every value in a column is a failure the type will be Object.class.

        Specified by:
        getColumnTypes in class ReportFormatter<TradeReport>
        Parameters:
        report - the report
        Returns:
        a list of column types
      • formatData

        protected java.lang.String formatData​(TradeReport report,
                                              int rowIdx,
                                              int colIdx,
                                              ReportOutputFormat format)
        Description copied from class: ReportFormatter
        Formats a piece of data for display.
        Specified by:
        formatData in class ReportFormatter<TradeReport>
        Parameters:
        report - the report containing the data
        rowIdx - the row index of the data
        colIdx - the column index of the data
        format - the report output format
        Returns:
        the formatted data