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.
currency | the new currency to be used by this number format |
UnsupportedOperationException | if the number format class doesn't implement currency formatting | |
NullPointerException | if currency is null |
Diagram: Format