public Dividend setDate(SimpleDate date) { Dividend dividend = new Dividend(this.getStock(), this.getAmount(), date); dividend.setComment(this.comment); return(dividend); }
public Dividend setStock(Stock stock) { Dividend dividend = new Dividend(stock, this.getAmount(), this.getDate()); dividend.setComment(this.comment); return(dividend); }
public Dividend setAmount(double amount) { Dividend dividend = new Dividend(this.getStock(), amount, this.getDate()); dividend.setComment(this.comment); return(dividend); }
public Dividend(Dividend dividend) { this.stock = dividend.stock; this.amount = dividend.amount; this.date = dividend.date; this.comment = dividend.comment; }
public Dividend setStock(Stock stock) { Dividend dividend = new Dividend(stock, this.getAmount(), this.getDate()); dividend.setComment(this.comment); return dividend; }
public Dividend setDate(SimpleDate date) { Dividend dividend = new Dividend(this.getStock(), this.getAmount(), date); dividend.setComment(this.comment); return dividend; }
public Dividend setAmount(double amount) { Dividend dividend = new Dividend(this.getStock(), amount, this.getDate()); dividend.setComment(this.comment); return dividend; }