public abstract class AbstractRecordPrinter<T> extends Object implements RecordPrinter<T>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractRecordPrinter.ReportColumn |
| Modifier and Type | Field and Description |
|---|---|
protected Collection<AbstractRecordPrinter.ReportColumn> |
reportColumns |
protected int |
tableWidth |
| Constructor and Description |
|---|
AbstractRecordPrinter(int tableWidth,
Collection<AbstractRecordPrinter.ReportColumn> reportColumns) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getColumnValue(AbstractRecordPrinter.ReportColumn column,
T record) |
protected void |
printHeader() |
void |
printRecord(T record) |
protected void |
printRecordInternal(T record) |
void |
printRecords(Collection<T> records) |
protected final Collection<AbstractRecordPrinter.ReportColumn> reportColumns
protected final int tableWidth
public AbstractRecordPrinter(int tableWidth,
Collection<AbstractRecordPrinter.ReportColumn> reportColumns)
public void printRecord(T record)
printRecord in interface RecordPrinter<T>public void printRecords(Collection<T> records)
printRecords in interface RecordPrinter<T>protected void printRecordInternal(T record)
protected String getColumnValue(AbstractRecordPrinter.ReportColumn column, T record)
protected void printHeader()
Copyright © 2016. All Rights Reserved.