package com.evs.objava33.class14;
public class Transaction {
private Account account;
private TransType transType;
private Double amount;
public Transaction(Account account, TransType transType, Double amount) {
this.account = account;
this.transType = transType;
this.amount = amount;
}
/**
* @return the account
*/
public Account getAccount() {
return account;
}
/**
* @param account
* the account to set
*/
public void setAccount(Account account) {
this.account = account;
}
/**
* @return the transType
*/
public TransType getTransType() {
return transType;
}
/**
* @param transType
* the transType to set
*/
public void setTransType(TransType transType) {
this.transType = transType;
}
/**
* @return the amount
*/
public Double getAmount() {
return amount;
}
/**
* @param amount
* the amount to set
*/
public void setAmount(Double amount) {
this.amount = amount;
}
public String toString() {
return "Transaction [account=" + account + ", transType=" + transType
+ ", amount=" + amount + "]";
}
}
No comments:
Post a Comment