Package com.thoughtworks.gauge
Class Table
java.lang.Object
com.thoughtworks.gauge.Table
Custom Table structure used as parameter in steps.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetColumnName(int columnIndex) Gets a Column name by index.getColumnValues(int columnIndex) Get all the values of a column in a Table.getColumnValues(String columnName) Get all the values of a column in Table.getRows()Deprecated.Use getTableRows() method instead of this.inthashCode()toString()
-
Constructor Details
-
Table
-
-
Method Details
-
addRow
-
getColumnNames
- Returns:
- List of Names of the Columns on the table
-
getColumnName
Gets a Column name by index.- Parameters:
columnIndex-- Returns:
- a single column name by given column index.
-
getTableRows
- Returns:
- List of Rows in the table. Each Row is represented by a TableRow.
-
getRows
Deprecated.Use getTableRows() method instead of this.- Returns:
- List of TableRows in the table. Each Row is represented by a List of String values according to the order of column names
-
getColumnValues
Get all the values of a column in Table.- Parameters:
columnName- - The column name of the Table- Returns:
- List of values against a column in Table.
-
getColumnValues
Get all the values of a column in a Table.- Parameters:
columnIndex- - The column index of the table- Returns:
- List of row values of a given column index in a Table.
-
toString
-
hashCode
public int hashCode() -
equals
-