|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--applications.Currency2
Field Summary | |
static boolean |
MINUS
|
static boolean |
PLUS
|
Constructor Summary | |
Currency2()
initialize instance to $0.00 |
|
Currency2(boolean theSign,
long theDollars,
byte theCents)
initialize instance to theSign $ theDollars.theCents |
|
Currency2(double theValue)
initialize with double |
Method Summary | |
Currency2 |
Add(Currency2 x)
return this + x |
byte |
getCents()
|
long |
getDollars()
|
boolean |
getSign()
|
Currency2 |
Increment(Currency2 x)
return this incremented by x |
static void |
main(java.lang.String[] args)
test program |
void |
setCents(byte theCents)
set cents = theCents |
void |
setDollars(long theDollars)
set dollars = theDollars |
void |
setSign(boolean theSign)
Set the sign of amount to theSign. |
void |
setValue(Currency2 x)
|
void |
setValue(double theValue)
set amount |
java.lang.String |
toString()
convert to a string |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final boolean PLUS
public static final boolean MINUS
Constructor Detail |
public Currency2()
public Currency2(boolean theSign, long theDollars, byte theCents)
public Currency2(double theValue)
Method Detail |
public boolean getSign()
public long getDollars()
public byte getCents()
public void setSign(boolean theSign)
public void setDollars(long theDollars)
public void setCents(byte theCents)
public void setValue(double theValue)
public void setValue(Currency2 x)
public java.lang.String toString()
public Currency2 Add(Currency2 x)
public Currency2 Increment(Currency2 x)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |