Interface IBaseTable
- All Superinterfaces:
IQuickSort,Iterable<DataRow>
IBaseTable. Specifying common functionality between DataTable and DataView.
Created by Martin Cooper on 19/07/2017.
-
Method Summary
Modifier and TypeMethodDescriptioncolumns()name()Accessor to a specific row by index.rowCount()Returns the rowCount / row count of the table.com.github.martincooper.datatable.DataRowCollectionBaserows()Return a new DataTable based on this table (clone).Return a new Data View based on this table.Methods inherited from interface com.github.martincooper.datatable.sorting.IQuickSort
quickSort, quickSort, quickSort, quickSort, quickSort, quickSortMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
name
String name()- Returns:
- Returns the table name.
-
columns
DataColumnCollection columns()- Returns:
- Returns the columns collection.
-
rows
com.github.martincooper.datatable.DataRowCollectionBase rows()- Returns:
- Returns the row collection.
-
row
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.
-