public void setCurrency (Currency currency)

Sets the currency used by this number format when formatting currency values. This does not update the minimum or maximum number of fraction digits used by the number format.

The default implementation throws UnsupportedOperationException.

Parameters:
currency    the new currency to be used by this number format

Exceptions:
UnsupportedOperationException    if the number format class doesn't implement currency formatting
NullPointerException    if currency is null

Since:  1.4