|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbyucc.edif.ExpValue
Represents a base number with an exponent value. This object is immutable.
| Field Summary | |
private int |
_base
The base number of this object. |
private int |
_exp
The exponent (in powers of 10) of the base number. |
| Constructor Summary | |
ExpValue(int base,
int exp)
Constructs an ExpValue Object with the specified base and exponent. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a copy or clone of this object. |
boolean |
equals(ExpValue cmp)
Returns true if the values in this Object equal or match that of the passed-in one. |
int |
getBase()
Returns the base value of this object. |
int |
getExp()
Returns the exponent of this object. |
double |
getValue()
Returns 10 raised to the exponent timed by the base number. |
java.lang.String |
toString()
Returns a String representation of this Object. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int _base
private int _exp
| Constructor Detail |
public ExpValue(int base,
int exp)
base - The base numberexp - The base number is raised to this exponent| Method Detail |
public java.lang.Object clone()
public boolean equals(ExpValue cmp)
cmp - The Object to match the values of this Object with
public int getBase()
public int getExp()
public double getValue()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||