|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmathcomp.la.GeometricWithNumber
public class GeometricWithNumber
This class decorates an Geometric
with an int
.
Typically this class will be used to distinguish
different dof's on the same geometrical object.
Note that this is an immutable object that is, once created, the data in the Object cannot be changed anymore.
Constructor Summary | |
---|---|
GeometricWithNumber(Geometric geo,
int i)
This constructs the ObjectWithNumber. |
Method Summary | |
---|---|
static boolean |
areEqual(java.lang.Object a,
java.lang.Object b)
Tests if the either both a and b are null or a.equals(b). |
boolean |
equals(java.lang.Object obj)
|
Geometric |
getGeo()
Returns value of property geo . |
int |
getI()
Returns the value of property i . |
int |
hashCode()
|
Node |
node(int i)
Returns the i -th node. |
int |
nodesCount()
Number of nodes. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometricWithNumber(Geometric geo, int i)
This constructs the ObjectWithNumber.
Because ObjectWithNumber
is immutable,
this is the only point where you can set the reference
and the int
.
obj
- i
- Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static final boolean areEqual(java.lang.Object a, java.lang.Object b)
public int hashCode()
hashCode
in class java.lang.Object
public int nodesCount()
Geometric
nodesCount
in interface Geometric
public Node node(int i)
Geometric
i
-th node.
node
in interface Geometric
i
-th nodepublic int getI()
i
.
i
public Geometric getGeo()
geo
.
geo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |