equal
deleted
inserted
replaced
369 * |
369 * |
370 * @param locale the locale for whose country a <code>Currency</code> |
370 * @param locale the locale for whose country a <code>Currency</code> |
371 * instance is needed |
371 * instance is needed |
372 * @return the <code>Currency</code> instance for the country of the given |
372 * @return the <code>Currency</code> instance for the country of the given |
373 * locale, or {@code null} |
373 * locale, or {@code null} |
374 * @exception NullPointerException if <code>locale</code> or its country |
374 * @exception NullPointerException if <code>locale</code> |
375 * code is {@code null} |
375 * is {@code null} |
376 * @exception IllegalArgumentException if the country of the given {@code locale} |
376 * @exception IllegalArgumentException if the country of the given {@code locale} |
377 * is not a supported ISO 3166 country code. |
377 * is not a supported ISO 3166 country code. |
378 */ |
378 */ |
379 public static Currency getInstance(Locale locale) { |
379 public static Currency getInstance(Locale locale) { |
380 String country = locale.getCountry(); |
380 String country = locale.getCountry(); |