public class GenericObjectTable<T> extends ObjectTable<T>
| Constructor and Description |
|---|
GenericObjectTable()
Creates a new object table.
|
GenericObjectTable(int increment)
Creates a new table.
|
GenericObjectTable(int rowIncrement,
int colIncrement)
Creates a new table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyColumn(int oldColumn,
int newColumn)
Copys the contents of the old column to the new column.
|
void |
copyRow(int oldRow,
int newRow)
Copys the contents of the old row to the new row.
|
T |
getObject(int row,
int column)
Returns the object from a particular cell in the table.
|
void |
setObject(int row,
int column,
T object)
Sets the object for a cell in the table.
|
clear, clearRow, ensureCapacity, ensureRowCapacity, equals, getColumnCount, getColumnIncrement, getData, getRowCount, getRowIncrement, hashCode, readSerializedData, setData, writeSerializedDatapublic GenericObjectTable()
public GenericObjectTable(int increment)
increment - the row and column size increment.public GenericObjectTable(int rowIncrement,
int colIncrement)
rowIncrement - the row size increment.colIncrement - the column size increment.public T getObject(int row, int column)
getObject in class ObjectTable<T>row - the row index (zero-based).column - the column index (zero-based).public void setObject(int row,
int column,
T object)
setObject in class ObjectTable<T>row - the row index (zero-based).column - the column index (zero-based).object - the object.public void copyColumn(int oldColumn,
int newColumn)
copyColumn in class ObjectTable<T>oldColumn - the index of the old (source) columnnewColumn - the index of the new columnpublic void copyRow(int oldRow,
int newRow)
copyRow in class ObjectTable<T>oldRow - the index of the old rownewRow - the index of the new rowCopyright © 2017 Hitachi Vantara. All rights reserved.