|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.rawdata.logging.AbstractRawDataMonitorable
pl.edu.agh.cast.rawdata.TabularData
public class TabularData
Contains list of rows. Rows don't need to have the same count of columns.
Field Summary | |
---|---|
protected LinkedList<DataRow> |
rows
List containing table rows. |
Constructor Summary | |
---|---|
TabularData()
Default constructor. |
Method Summary | |
---|---|
void |
addRow(DataRow newRow)
Add a specified row to the end of table. |
void |
addRows(List<DataRow> newRows)
Adds list of rows on the end of data table. |
DataRow |
get(int row)
Gets row in table by row number. |
List<DataRow> |
getAllRows()
|
Set<String> |
getAllRowValues(int columnIndex,
int numberOfRowsToIgnore)
Returns distinct values from all rows specified columns. |
int |
getColumnsCount()
Returns column count. |
boolean |
isEmpty()
Checks if table is empty. |
boolean |
removeRow(DataRow toDelete)
Removes the specified row from table. |
void |
restoreAsFirst(DataRow row)
Restores specified rows as first row in table. |
int |
size()
Returns table rows count. |
Methods inherited from class pl.edu.agh.cast.rawdata.logging.AbstractRawDataMonitorable |
---|
getObservers, registerObserver, unregisterObserver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LinkedList<DataRow> rows
Constructor Detail |
---|
public TabularData()
Method Detail |
---|
public void addRow(DataRow newRow)
newRow
- row to addpublic void restoreAsFirst(DataRow row)
row
- row to restore
IllegalArgumentException
- when specified row has unspecified row numberpublic Set<String> getAllRowValues(int columnIndex, int numberOfRowsToIgnore)
columnIndex
- column indexnumberOfRowsToIgnore
- number of rows to ignore
public void addRows(List<DataRow> newRows)
newRows
- rows to addpublic List<DataRow> getAllRows()
public boolean removeRow(DataRow toDelete)
toDelete
- row to delete
public int getColumnsCount()
public int size()
public DataRow get(int row)
row
- row number
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |