public abstract class Transaction
extends java.lang.Object
Transaction
subclasses are
immutable, i.e. the objects cannot be altered after creationConstructor and Description |
---|
Transaction(int date) |
Modifier and Type | Method and Description |
---|---|
int |
getDate() |
abstract void |
replay(PermanentAccount target)
The design pattern "Strategy" is used for implementing the
synchronisation of offline account proxies with the permanent accounts.
|
public int getDate()
this
transaction takes
placepublic abstract void replay(PermanentAccount target)
this
transaction an the
real accounttarget
- the permanent account on which this
transaction
is supposed to be carried out