Class TradeReportFormatter

    • Field Detail

      • INSTANCE

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

      • getColumnTypes

        protected List<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>
        report - the report
        a list of column types
      • formatData

        protected 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>
        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
        the formatted data