|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface must be implemented by every class that creates an ECashBank object.
ECashBank
Method Summary | |
boolean |
checkPassword(java.lang.String accountNumber,
java.lang.String password)
Returns true if the password correspond with the account number, false otherwise. |
java.lang.String |
getAmount(java.lang.String accountNumber)
Returns the available amount in the specified bank account. |
void |
report(BuyReport buyReport)
Called after a client bought some money from his bank account. |
void |
report(DepositReport depositReport)
Called after a client deposited some money on his bank account. |
Method Detail |
public boolean checkPassword(java.lang.String accountNumber, java.lang.String password)
accountNumber
- the account numberpassword
- the password
public java.lang.String getAmount(java.lang.String accountNumber)
accountNumber
- the account to check
public void report(DepositReport depositReport)
depositReport
- a report describing the operationDepositReport
public void report(BuyReport buyReport)
buyReport
- a report describing the operationBuyReport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |