Class TableRow

java.lang.Object
com.thoughtworks.gauge.TableRow

public class TableRow extends Object
Represents a Row of Data in a Table.
  • Constructor Details

    • TableRow

      public TableRow()
  • Method Details

    • getCell

      public String getCell(String columnName)
      Get the value of cell corresponding to a column name.
      Parameters:
      columnName - - The column name of TableRow.
      Returns:
      The value of cell corresponding to a column name.
    • addCell

      public void addCell(String columnName, String value)
      Add a cell to the TableRow.
      Parameters:
      columnName - The column name against which the cell is added.
      value - The value to be stored in the cell.
    • size

      public int size()
      Get the number of cells in TableRow.
      Returns:
      The number of cells in TableRow.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCellValues

      public List<String> getCellValues()
      Returns a list containing the values of each cell in the table row.
      Returns:
      a list of the values of each cell in the table row.
    • getTableCells

      public List<TableCell> getTableCells()
      Returns a list of TableCells representing each cell in the table row.
      Returns:
      a list of TableCells.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object