|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Bank interface.
| Method Summary | |
java.lang.String |
addNewAccount(java.lang.String name,
float initBalance)
Adds a new account. |
Account |
getAccount(java.lang.String id)
Returns the account that has the given ID. |
java.util.List |
getAccounts()
Returns a list of all account in the bank. |
| Method Detail |
public java.lang.String addNewAccount(java.lang.String name,
float initBalance)
throws AccountException
name - the account owner's name.initBalance - the initial balance for the account.
topdown.service.AccountException - if the initial balance is insufficent (<= 0).
AccountExceptionpublic Account getAccount(java.lang.String id)
id - the account ID.
public java.util.List getAccounts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||