Interface IBaseTable

All Superinterfaces:
IQuickSort, Iterable<DataRow>
All Known Implementing Classes:
DataTable, DataView

public interface IBaseTable extends Iterable<DataRow>, IQuickSort
IBaseTable. Specifying common functionality between DataTable and DataView. Created by Martin Cooper on 19/07/2017.
  • Method Details

    • name

      String name()
      Returns:
      Returns the table name.
    • columns

      Returns:
      Returns the columns collection.
    • rows

      com.github.martincooper.datatable.DataRowCollectionBase rows()
      Returns:
      Returns the row collection.
    • row

      DataRow row(Integer rowIdx)
      Accessor to a specific row by index.
      Parameters:
      rowIdx - The index of the row to return.
      Returns:
      Returns a single row.
    • rowCount

      Integer rowCount()
      Returns the rowCount / row count of the table.
      Returns:
      The row count of the table.
    • toDataTable

      DataTable toDataTable()
      Return a new DataTable based on this table (clone).
      Returns:
      Returns a clone of this DataTable.
    • toDataView

      DataView toDataView()
      Return a new Data View based on this table.
      Returns:
      A new Data View based on this table.