Class Table


  • public class Table
    extends Object
    Custom Table structure used as parameter in steps.
    • Constructor Detail

    • Method Detail

      • addRow

        public void addRow​(List<String> row)
      • getColumnNames

        public List<String> getColumnNames()
        Returns:
        List of Names of the Columns on the table
      • getColumnName

        public String getColumnName​(int columnIndex)
        Gets a Column name by index.
        Parameters:
        columnIndex -
        Returns:
        a single column name by given column index.
      • getTableRows

        public List<TableRow> getTableRows()
        Returns:
        List of Rows in the table. Each Row is represented by a TableRow.
      • getRows

        @Deprecated
        public List<List<String>> 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

        public List<String> getColumnValues​(String columnName)
        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

        public List<String> getColumnValues​(int columnIndex)
        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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object