|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kth.leiflindback.distdb.db.WithdrawCommand
public class WithdrawCommand
This Command
implementation is used to withdraw money.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
WithdrawCommand(float amount)
Constructs an instance that will withdraw the specified amount from all accounts it is sent to. |
Method Summary | |
---|---|
void |
execute(Account account)
Executes the task of the command implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public WithdrawCommand(float amount)
amount
- The amount to withdraw.Method Detail |
---|
public void execute(Account account)
Command
execute
in interface Command
account
- The account on wiich to invoke the command,
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |