Item - QueryItem whose value is relevant for this report.ColumnHeader - ReportColumnHeader which can determine if an <Item> belongs into that column or not.public abstract class Report<Item extends QueryItem,ColumnHeader extends ReportColumnHeader<? super Item>> extends Object
ReportRows and a list of <ColumnHeader>s.
Since a report does not specify <Item> and <ColumnHeader> it does not contain functional logic.
Due to readability implicit definition of functional logic is prevented and thus prevent
initialization of an abstract Report. In order to create a specific Report a subclass has to be created.| Modifier and Type | Field and Description |
|---|---|
protected List<ColumnHeader> |
columnHeaders |
| Constructor and Description |
|---|
Report(List<ColumnHeader> columnHeaders,
String rowDesc) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(Item item) |
void |
addItems(List<Item> items) |
void |
addItems(List<Item> items,
QueryItemPreprocessor<Item> preprocessor) |
protected ReportRow<Item> |
createReportRow(int columnSize) |
List<ColumnHeader> |
getColumnHeaders() |
Map<String,ReportRow<Item>> |
getReportRows() |
ReportRow<Item> |
getRow(String key) |
String |
getRowDesc() |
ReportRow<Item> |
getSumRow() |
int |
rowSize() |
Set<String> |
rowTitles() |
protected List<ColumnHeader extends ReportColumnHeader<? super Item>> columnHeaders
public Report(List<ColumnHeader> columnHeaders, String rowDesc)
public final List<ColumnHeader> getColumnHeaders()
public final String getRowDesc()
public final int rowSize()
public final void addItem(Item item)
public final void addItems(List<Item> items, QueryItemPreprocessor<Item> preprocessor)
Copyright © 2018. All rights reserved.