java.io.Serializable
public class ByteTable
extends java.lang.Object
implements java.io.Serializable
Constructor | Description |
---|---|
ByteTable(int rows,
int cols) |
Creates a new table.
|
Modifier and Type | Method | 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(java.lang.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(java.lang.Object o)
ObjectTable
).equals
in class java.lang.Object
o
- the other object.public int hashCode()
hashCode
in class java.lang.Object
public void clear(byte value)