Package com.thoughtworks.gauge
Class TableRow
- java.lang.Object
-
- com.thoughtworks.gauge.TableRow
-
public class TableRow extends Object
Represents a Row of Data in a Table.
-
-
Constructor Summary
Constructors Constructor Description TableRow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCell(String columnName, String value)
Add a cell to the TableRow.boolean
equals(Object obj)
String
getCell(String columnName)
Get the value of cell corresponding to a column name.List<String>
getCellValues()
Returns a list containing the values of each cell in the table row.List<TableCell>
getTableCells()
Returns a list of TableCells representing each cell in the table row.int
hashCode()
int
size()
Get the number of cells in TableRow.String
toString()
-
-
-
Method Detail
-
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.
-
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.
-
-