Class SingleRow<I extends QueryItem>

java.lang.Object
pro.taskana.monitor.api.reports.row.SingleRow<I>
Type Parameters:
I - QueryItem on which the Report is based on.
All Implemented Interfaces:
Row<I>
Direct Known Subclasses:
FoldableRow

public class SingleRow<I extends QueryItem> extends Object implements Row<I>
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 Details

    • SingleRow

      public SingleRow(String key, int columnCount)
  • Method Details

    • addItem

      public void addItem(I item, int index) throws IndexOutOfBoundsException
      Description copied from interface: Row
      Appends a specific item value at a specific index.
      Specified by:
      addItem in interface Row<I extends QueryItem>
      Parameters:
      item - the item which will be appended
      index - the index at which the item will be appended at.
      Throws:
      IndexOutOfBoundsException - if the given index is invalid.
    • updateTotalValue

      public void updateTotalValue(I item)
      Description copied from interface: Row
      updates the total value of the row without changing any cell value.
      Specified by:
      updateTotalValue in interface Row<I extends QueryItem>
      Parameters:
      item - the item whose value will be added to the total value of this row.
    • getKey

      public String getKey()
      Specified by:
      getKey in interface Row<I extends QueryItem>
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Row<I extends QueryItem>
    • setDisplayName

      public void setDisplayName(Map<String,String> displayMap)
      Specified by:
      setDisplayName in interface Row<I extends QueryItem>
    • getTotalValue

      public final int getTotalValue()
      Specified by:
      getTotalValue in interface Row<I extends QueryItem>
    • getCells

      public final int[] getCells()
      Specified by:
      getCells in interface Row<I extends QueryItem>