コード例 #1
0
 public Money subtract(Money m) {
   return new Money(this.currency, this.getAmount() - m.getAmount());
 }
コード例 #2
0
 public Money add(Money m) {
   return new Money(this.currency, this.getAmount() + m.getAmount());
 }