|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kth.leiflindback.distdb.db.InterestCommand
public class InterestCommand
This Command
implementation is used to deposit interest.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
InterestCommand(float percentage)
Constructs an instance that will deposit the gained interest 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 InterestCommand(float percentage)
percentage
- The interest percentage. If the interest is 3% the call should be
new DepositCommand(3)
.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 |