public Money add(Money money){
  assertDefined();
  if (null == m_value) {
    if (null == money.getBigDecimalValue()) {
      return new Money();
    }
 else {
      return new Money(money.getBigDecimalValue());
    }
  }
  BigDecimal value=m_value.add(money.getBigDecimalValue());
  return new Money(value);
}

public Money add ( Money money ) { assertDefined ( ) ; if ( null == m_value ) { if ( null == money . getBigDecimalValue ( ) ) { return new Money ( ) ; } else { return new Money ( money . getBigDecimalValue ( ) ) ; } } BigDecimal value = m_value . add ( money . getBigDecimalValue ( ) ) ; return new Money ( value ) ; }
adds two money objects
