|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp3j.misc.math.Matrix
public class Matrix
Matrix object that contains its value as a Matrix2D
. It also provides
an ID and hash code calculation routines, so that similar matrices can be
found easily by the storage system.
Created: August 18, 2008
Constructor Summary | |
---|---|
Matrix()
Instantiates a new matrix (only required for beans compliance, do not use manually). |
|
Matrix(Matrix2D val)
Default constructor. |
Method Summary | |
---|---|
Matrix |
copy()
Creates (deep) copy of this matrix, apart from the ID. |
boolean |
equals(Object o)
|
long |
getHash()
|
int |
getID()
|
Matrix2D |
getValue()
|
int |
hashCode()
|
void |
setHash(long hash)
|
void |
setID(int id)
|
void |
setValue(Matrix2D value)
Sets the value of the matrix. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Matrix(Matrix2D val)
val
- the associated valuepublic Matrix()
Method Detail |
---|
public Matrix copy()
public int getID()
public void setID(int id)
public long getHash()
public void setHash(long hash)
public Matrix2D getValue()
public void setValue(Matrix2D value)
value
- the new valuepublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |