public CurrencyAmount parseCurrency(CharSequence text, ParsePosition pos) {
        ///CLOVER:OFF
        // Default implementation only -- subclasses should override
        Number n = parse(text.toString(), pos);
        return n == null ? null : new CurrencyAmount(n, getEffectiveCurrency());
        ///CLOVER:ON
    }
public CurrencyAmount parseCurrency ( CharSequence text , ParsePosition pos ) { Number n = parse ( text . toString ( ) , pos ) ; return n == null ? null : new CurrencyAmount ( n , getEffectiveCurrency ( ) ) ; }
Parses text from the given string as a CurrencyAmount.  Unlike
the parse() method, this method will attempt to parse a generic
currency name, searching for a match of this object's locale's
currency display names, or for a 3-letter ISO currency code.
This method will fail if this format is not a currency format,
that is, if it does not contain the currency pattern symbol
(U+00A4) in its prefix or suffix.

@param text the text to parse
@param pos input-output position; on input, the position within
text to match; must have 0 &lt;= pos.getIndex() &lt; text.length();
on output, the position after the last matched character. If
the parse fails, the position in unchanged upon output.
@return a CurrencyAmount, or null upon failure