public class SingleRow<I extends QueryItem> extends Object implements Row<I>
Report. It contains an array of cells whose
index corresponds to the ColumnHeader index in the Report.| Constructor and Description |
|---|
SingleRow(int columnCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(I item,
int index)
Appends a specific item value at a specific index.
|
int[] |
getCells() |
int |
getTotalValue() |
void |
updateTotalValue(I item)
updates the total value of the row without changing any cell value.
|
public void addItem(I item, int index) throws IndexOutOfBoundsException
RowaddItem in interface Row<I extends QueryItem>item - the item which will be appendedindex - the index at which the item will be appended at.IndexOutOfBoundsException - if the given index is invalid.public void updateTotalValue(I item)
RowupdateTotalValue in interface Row<I extends QueryItem>item - the item whose value will be added to the total value of this row.public final int getTotalValue()
getTotalValue in interface Row<I extends QueryItem>Copyright © 2020. All rights reserved.