< prev index next >

src/java.base/share/classes/java/util/Locale.java

Print this page

        

*** 717,727 **** * is available in the cache, then that instance is * returned. Otherwise, a new <code>Locale</code> instance is * created and cached. * * @param language lowercase 2 to 8 language code. ! * @param country uppercase two-letter ISO-3166 code and numric-3 UN M.49 area code. * @param variant vendor and browser specific code. See class description. * @return the <code>Locale</code> instance requested * @exception NullPointerException if any argument is null. */ static Locale getInstance(String language, String country, String variant) { --- 717,727 ---- * is available in the cache, then that instance is * returned. Otherwise, a new <code>Locale</code> instance is * created and cached. * * @param language lowercase 2 to 8 language code. ! * @param country uppercase two-letter ISO-3166 code and numeric-3 UN M.49 area code. * @param variant vendor and browser specific code. See class description. * @return the <code>Locale</code> instance requested * @exception NullPointerException if any argument is null. */ static Locale getInstance(String language, String country, String variant) {
*** 1234,1244 **** } /** * Package private method returning the Locale's LocaleExtensions, * used by ResourceBundle. ! * @return locale exnteions of this Locale, * or {@code null} if no extensions are defined */ LocaleExtensions getLocaleExtensions() { return localeExtensions; } --- 1234,1244 ---- } /** * Package private method returning the Locale's LocaleExtensions, * used by ResourceBundle. ! * @return locale extensions of this Locale, * or {@code null} if no extensions are defined */ LocaleExtensions getLocaleExtensions() { return localeExtensions; }
*** 2607,2617 **** * Removes a unicode locale attribute, if present, otherwise has no * effect. The attribute must not be null and must be <a * href="./Locale.html#def_locale_extension">well-formed</a> or an exception * is thrown. * ! * <p>Attribute comparision for removal is case-insensitive. * * @param attribute the attribute * @return This builder. * @throws NullPointerException if <code>attribute</code> is null * @throws IllformedLocaleException if <code>attribute</code> is ill-formed --- 2607,2617 ---- * Removes a unicode locale attribute, if present, otherwise has no * effect. The attribute must not be null and must be <a * href="./Locale.html#def_locale_extension">well-formed</a> or an exception * is thrown. * ! * <p>Attribute comparison for removal is case-insensitive. * * @param attribute the attribute * @return This builder. * @throws NullPointerException if <code>attribute</code> is null * @throws IllformedLocaleException if <code>attribute</code> is ill-formed
< prev index next >