# com.beasys.commerce.axiom.units
Money Interface

public interface Money
extends `Belonging`

Represents money as value and currency

Related Topics

``MoneyHome``

All Known Implementing Classes
  `MoneyImpl`, `DescribedMoneyImpl`, `DescribedPriceImpl`, `PriceImpl`

All Superinterfaces
  `Belonging`, `BusinessSmartComponent`, `Cloneable`, `Comparable`, `Serializable`

All Known Subinterfaces
  `DescribedMoney`, `DescribedPrice`, `Price`

## Method Summary

`public `String`` | `getCurrency`() Returns the currency of money
`public double` | `getValue`() Returns the value of money
`public void` | `setCurrency`(`String` currency) Sets the currency of money
`public void` | `setValue`(double value) Sets the value of money

Methods from interface `com.beasys.commerce.foundation.`Belonging``
``clone`, `equals`, `interfaceName`, `setByValue`, `value``

Methods from interface `java.lang.`Comparable``
`compareTo`

## Method Detail

### getCurrency() Method

    public String getCurrency()

Returns the currency of money

#### Returns

currency.

### getValue() Method

    public double getValue()

Returns the value of money

#### Returns

value.

### setCurrency(String) Method

    public void setCurrency(String currency)
         throws InvalidArgumentException

Sets the currency of money

#### Parameters

currency
  currency to be set

#### Exceptions

``InvalidArgumentException``

### setValue(double) Method

    public void setValue(double value)

Sets the value of money

#### Parameters

value
  value to be set