public class ByteTable extends Object implements Serializable
Constructor and Description |
---|
ByteTable(int rows,
int cols)
Creates a new table.
|
Modifier and Type | Method and Description |
---|---|
void |
clear(byte value)
Clears the table.
|
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 ). |
byte |
getByte(int row,
int column,
byte defaultValue)
Returns the object from a particular cell in the table.
|
int |
getColumnCount()
Returns the number of columns in the table.
|
int |
getRowCount()
Returns the number of rows in the table.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
setByte(int row,
int column,
byte object)
Sets the object for a cell in the table.
|
public ByteTable(int rows, int cols)
rows
- the inital number of rows.cols
- the initial number of columns.public void ensureCapacity(int row, int column)
row
- the row index.column
- the column index.public int getRowCount()
public int getColumnCount()
public byte getByte(int row, int column, byte defaultValue)
row
- the row index (zero-based).column
- the column index (zero-based).public void setByte(int row, int column, byte object)
row
- the row index (zero-based).column
- the column index (zero-based).object
- the object.public boolean equals(Object o)
ObjectTable
).public int hashCode()
public void clear(byte value)