public class TableData extends Object
Constructor and Description |
---|
TableData(List<TableDataColumn> columns,
List<List<Object>> data)
Creates a new instance
|
TableData(TableDataColumn[] columns,
Object[][] data)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TableDataColumn[] |
getColumns()
Get the headers
|
Object[][] |
getData()
Get the data in form Object['column index']['row data']
|
long |
getNumberOfRows() |
long |
getOffset()
Get the row offset (if this
TableData represents only a subset of
the original table) |
long |
getOriginalFileId()
Get the original file id
|
int |
hashCode() |
boolean |
isCompleted() |
boolean |
isEmpty() |
void |
setCompleted()
Manually set completed state (sets the
numberOfRows to
the last row in the data array) |
void |
setNumberOfRows(long numberOfRows)
Set the total number of rows in the original table
|
void |
setOffset(long offset)
Set the row offset (if this
TableData represents only a subset of
the original table) |
void |
setOriginalFileId(long originalFileId)
Set the originalfile id
|
String |
toString() |
public TableData(List<TableDataColumn> columns, List<List<Object>> data)
columns
- The column definitionsdata
- The data in form of List of columnspublic TableData(TableDataColumn[] columns, Object[][] data)
columns
- The column definitionsdata
- The data in form data['column index']['row data']public TableDataColumn[] getColumns()
public Object[][] getData()
public long getOffset()
TableData
represents only a subset of
the original table)public long getOriginalFileId()
public void setOriginalFileId(long originalFileId)
originalFileId
- The originalfile idpublic void setOffset(long offset)
TableData
represents only a subset of
the original table)offset
- The row offsetpublic boolean isEmpty()
true
if this TableData object doesn't contain any
data, false
if it does contain data.public boolean isCompleted()
true
if the last available row is contained,
false
if there's more data available in the original
tablepublic void setCompleted()
numberOfRows
to
the last row in the data
array)public long getNumberOfRows()
public void setNumberOfRows(long numberOfRows)
numberOfRows
- See above
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.