public class ObjectTable<T> extends Object implements Serializable
Constructor and Description |
---|
ObjectTable()
Creates a new table.
|
ObjectTable(int increment)
Creates a new table.
|
ObjectTable(int rowIncrement,
int colIncrement)
Creates a new table.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the table.
|
void |
clearRow(int row)
Clears the row by removing the array that stores the row-data.
|
void |
ensureCapacity(int row,
int column)
Ensures that there is storage capacity for the specified item.
|
boolean |
equals(Object o)
Tests this paint table for equality with another object (typically also
an
ObjectTable ). |
int |
getColumnCount()
Returns the number of columns in the table.
|
int |
getColumnIncrement()
Returns the column size increment.
|
int |
getRowCount()
Returns the number of rows in the table.
|
int |
getRowIncrement()
Returns the row size increment.
|
int |
hashCode()
Returns a hash code value for the object.
|
public ObjectTable()
public ObjectTable(int increment)
increment
- the row and column size increment.public ObjectTable(int rowIncrement, int colIncrement)
rowIncrement
- the row size increment.colIncrement
- the column size increment.public int getColumnIncrement()
public int getRowIncrement()
public void ensureCapacity(int row, int column)
row
- the row index.column
- the column index.public int getRowCount()
public int getColumnCount()
public boolean equals(Object o)
ObjectTable
).public int hashCode()
public void clear()
public void clearRow(int row)
row
- the row to be deleted.