public abstract class Matrix<T>
extends java.lang.Object
Constructor and Description |
---|
Matrix() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getHeight()
Gets the height of the Matrix
|
abstract T |
getValue(int x,
int y)
Returns the value contained by the cell of the Matrix at (x, y)
|
abstract int |
getWidth()
Gets the width of the Matrix
|
abstract void |
setValue(int x,
int y,
T value)
Changes the value contained by the cell of the Matrix at (x, y), returns
null if the position doesn't exists
|
java.lang.String |
toString() |
public abstract int getWidth()
public abstract int getHeight()
public abstract T getValue(int x, int y)
x
- abscissa of the celly
- ordinate of the cellpublic abstract void setValue(int x, int y, T value)
x
- abscissa of the celly
- ordinate of the cellvalue
- public java.lang.String toString()
toString
in class java.lang.Object