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