Package com.thoughtworks.gauge
Class TableRow
java.lang.Object
com.thoughtworks.gauge.TableRow
Represents a Row of Data in a Table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a cell to the TableRow.booleanGet the value of cell corresponding to a column name.Returns a list containing the values of each cell in the table row.Returns a list of TableCells representing each cell in the table row.inthashCode()intsize()Get the number of cells in TableRow.toString()
-
Constructor Details
-
TableRow
public TableRow()
-
-
Method Details
-
getCell
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
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
-
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
Returns a list of TableCells representing each cell in the table row.- Returns:
- a list of TableCells.
-
hashCode
public int hashCode() -
equals
-