public class TableData
extends java.lang.Object
Constructor and Description |
---|
TableData(java.util.List<TableDataColumn> columns,
java.util.List<java.util.List<java.lang.Object>> data)
Creates a new instance
|
TableData(TableDataColumn[] columns,
java.lang.Object[][] data)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
TableDataColumn[] |
getColumns()
Get the headers
|
java.lang.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
|
java.lang.String |
toString() |
public TableData(java.util.List<TableDataColumn> columns, java.util.List<java.util.List<java.lang.Object>> data)
columns
- The column definitionsdata
- The data in form of List of columnspublic TableData(TableDataColumn[] columns, java.lang.Object[][] data)
columns
- The column definitionsdata
- The data in form data['column index']['row data']public TableDataColumn[] getColumns()
public java.lang.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 abovepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.