|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.csapi.jr.se.cs.Amount
Defines the Sequence of Data Elements that define an amount in integers as 'Number × 10 ^ Exponent' (that is if Number = 6543 and Exponent = -2 then the amount is 65,43). This representation avoids unwanted rounding off.
| Constructor Summary | |
Amount()
Creates a new Amount instance. |
|
Amount(int _number,
int _exponent)
Creates a new Amount instance. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one. |
int |
getExponent()
This method returns a exponent. |
int |
getNumber()
This method returns a number. |
int |
hashCode()
Returns a hashcode value for the object. |
void |
setExponent(int exponent)
This method sets a exponent. |
void |
setNumber(int number)
This method sets a number. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Amount()
public Amount(int _number,
int _exponent)
_number - _exponent - | Method Detail |
public int getNumber()
public int getExponent()
public void setNumber(int number)
public void setExponent(int exponent)
public boolean equals(java.lang.Object o)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||