|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kth.leiflindback.distdb.db.DepositCommand
public class DepositCommand
This Command
implementation is used to deposit money.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
DepositCommand(float amount)
Constructs an instance that will deposit the specified amount to 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 DepositCommand(float amount)
amount
- The amount to deposit.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 |