Пример #1
0
 public Fiat subtract(final Fiat value) {
   checkArgument(value.currencyCode.equals(currencyCode));
   return new Fiat(currencyCode, LongMath.checkedSubtract(this.value, value.value));
 }
Пример #2
0
 public Coin subtract(final Coin value) {
   return new Coin(LongMath.checkedSubtract(this.value, value.value));
 }