public Price newest(Price o) { if (getDate().before(o.getDate())) { return o; } return this; }
public Price(Price p) { this.date = p.getDate(); this.quant = Shared.round(p.getQuant(), 2); }