public boolean isLessThenOrEqualTo(Quantity quantity){
  assertDefined();
  Integer thisValue=notNull(this);
  Integer parameter=notNull(quantity);
  return (thisValue.compareTo(parameter) <= 0);
}

public boolean isLessThenOrEqualTo ( Quantity quantity ) { assertDefined ( ) ; Integer thisValue = notNull ( this ) ; Integer parameter = notNull ( quantity ) ; return ( thisValue . compareTo ( parameter ) <= 0 ) ; }
compares two money objects .
