Class SingleRow<I extends QueryItem>
java.lang.Object
pro.taskana.monitor.api.reports.row.SingleRow<I>
- All Implemented Interfaces:
Row<I>
- Direct Known Subclasses:
FoldableRow
A SingleRow represents a single row in a Report. It contains an array of cells whose
index corresponds to the ColumnHeader index in the Report.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends a specific item value at a specific index.final int[]getCells()getKey()final intvoidsetDisplayName(Map<String, String> displayMap) voidupdateTotalValue(I item) updates the total value of the row without changing any cell value.
-
Constructor Details
-
SingleRow
-
-
Method Details
-
addItem
Description copied from interface:RowAppends a specific item value at a specific index.- Specified by:
addItemin interfaceRow<I extends QueryItem>- Parameters:
item- the item which will be appendedindex- the index at which the item will be appended at.- Throws:
IndexOutOfBoundsException- if the given index is invalid.
-
updateTotalValue
Description copied from interface:Rowupdates the total value of the row without changing any cell value.- Specified by:
updateTotalValuein interfaceRow<I extends QueryItem>- Parameters:
item- the item whose value will be added to the total value of this row.
-
getKey
-
getDisplayName
- Specified by:
getDisplayNamein interfaceRow<I extends QueryItem>
-
setDisplayName
- Specified by:
setDisplayNamein interfaceRow<I extends QueryItem>
-
getTotalValue
public final int getTotalValue()- Specified by:
getTotalValuein interfaceRow<I extends QueryItem>
-
getCells
public final int[] getCells()
-