Class CashFlowReportFormatter
- java.lang.Object
-
- com.opengamma.strata.report.framework.format.ReportFormatter<CashFlowReport>
-
- com.opengamma.strata.report.cashflow.CashFlowReportFormatter
-
public final class CashFlowReportFormatter extends ReportFormatter<CashFlowReport>
Formatter for cash flow reports.
-
-
Field Summary
Fields Modifier and Type Field Description static CashFlowReportFormatter
INSTANCE
The single shared instance of this report formatter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
formatData(CashFlowReport report, int rowIdx, int colIdx, ReportOutputFormat format)
Formats a piece of data for display.protected List<Class<?>>
getColumnTypes(CashFlowReport report)
Gets the type of the data in each report column.-
Methods inherited from class com.opengamma.strata.report.framework.format.ReportFormatter
formatValue, writeAsciiTable, writeCsv
-
-
-
-
Field Detail
-
INSTANCE
public static final CashFlowReportFormatter INSTANCE
The single shared instance of this report formatter.
-
-
Method Detail
-
getColumnTypes
protected List<Class<?>> getColumnTypes(CashFlowReport 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 classReportFormatter<CashFlowReport>
- Parameters:
report
- the report- Returns:
- a list of column types
-
formatData
protected String formatData(CashFlowReport report, int rowIdx, int colIdx, ReportOutputFormat format)
Description copied from class:ReportFormatter
Formats a piece of data for display.- Specified by:
formatData
in classReportFormatter<CashFlowReport>
- Parameters:
report
- the report containing the datarowIdx
- the row index of the datacolIdx
- the column index of the dataformat
- the report output format- Returns:
- the formatted data
-
-