|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A manager for Account
s.
Method Summary | |
---|---|
Account |
createNewAccount(java.lang.String name,
java.lang.Class typeClass)
Creates a new instance of Account . |
java.util.List |
getAccounts()
Returns a list of all Account s. |
java.util.Map |
getTypes()
Returns an unmodifiable copy of the type Map . |
void |
registerType(java.lang.String name,
java.lang.Class clazz)
Registers a new type of account. |
void |
remove(Account account)
Removes an Account . |
Method Detail |
---|
Account createNewAccount(java.lang.String name, java.lang.Class typeClass)
Account
.
name
- the name of the new Account
typeClass
- the type class to instantiate
Account
instancejava.util.List getAccounts()
Account
s.
Account
sjava.util.Map getTypes()
Map
. The keys are the
names of the account types, while the keys are the type classes.
Map
of String
s to Class
esvoid registerType(java.lang.String name, java.lang.Class clazz)
name
- the name of the account typeclazz
- the Class
of the account type; should implement
Account
void remove(Account account)
Account
.
account
- the Account
to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |