/** * Sets the number of shares involved in the transaction. * * @param shares number of shares involved in the transaction or * <code>null</code> to reset */ public void setShares(Double shares) { throwExceptionIfImmutable(); this.shares = shares; }
/** * Sets the type for the transaction (can be "Buy", "Sell", "Buy to Cover" or * "Sell Short"). * * @param type type for the transaction (can be "Buy", "Sell", "Buy to Cover" * or "Sell Short") or <code>null</code> to reset */ public void setType(String type) { throwExceptionIfImmutable(); this.type = type; }
/** * Sets the type for the transaction (can be "Buy", "Sell", "Buy to Cover" or * "Sell Short"). * * @param type type for the transaction (can be "Buy", "Sell", "Buy to Cover" * or "Sell Short") or <code>null</code> to reset */ public void setType(String type) { throwExceptionIfImmutable(); this.type = type; }
/** * Sets the notes. * * @param notes notes or <code>null</code> to reset */ public void setNotes(String notes) { throwExceptionIfImmutable(); this.notes = notes; }
/** * Sets the date at which the transaction occurred. * * @param date date at which the transaction occurred or <code>null</code> to * reset */ public void setDate(DateTime date) { throwExceptionIfImmutable(); this.date = date; }
/** * Sets the date at which the transaction occurred. * * @param date date at which the transaction occurred or <code>null</code> to * reset */ public void setDate(DateTime date) { throwExceptionIfImmutable(); this.date = date; }
/** * Sets the notes. * * @param notes notes or <code>null</code> to reset */ public void setNotes(String notes) { throwExceptionIfImmutable(); this.notes = notes; }
/** * Sets the number of shares involved in the transaction. * * @param shares number of shares involved in the transaction or * <code>null</code> to reset */ public void setShares(Double shares) { throwExceptionIfImmutable(); this.shares = shares; }