/** * Get a list of {@code LocaleCode} instances whose country matches the given one. * * <p> * This method is an alias of {@link #getByCountry(String, boolean) * getByCountry}{@code (country, false)}. * </p> * * @param country * Country code. ISO 3166-1 alpha-2 or alpha-3. * * @return * List of {@code LocaleCode} instances. If there is no {@code LocaleCode} * instance whose country matches the given one, the size of the returned * list is zero. * * @since 1.13 */ public static List<LocaleCode> getByCountryIgnoreCase(String country) { return getByCountry(country, false); }
/** * Get a list of {@code LocaleCode} instances whose country matches the given one. * * <p> * This method is an alias of {@link #getByCountry(String, boolean) * getByCountry}{@code (country, false)}. * </p> * * @param country * Country code. ISO 3166-1 alpha-2 or alpha-3. * * @return * List of {@code LocaleCode} instances. If there is no {@code LocaleCode} * instance whose country matches the given one, the size of the returned * list is zero. * * @since 1.13 */ public static List<LocaleCode> getByCountryIgnoreCase(String country) { return getByCountry(country, false); }
/** * Get a list of {@code LocaleCode} instances whose country matches the given one. * * <p> * This method is an alias of {@link #getByCountry(String, boolean) * getByCountry}{@code (country, true)}. * Note that the behavior has changed since the version 1.13. In the older versions, * this method was an alias of {@code getByCountry(country, false)}. * </p> * * @param country * Country code. ISO 3166-1 alpha-2 or alpha-3. * * @return * List of {@code LocaleCode} instances. If there is no {@code LocaleCode} * instance whose country matches the given one, the size of the returned * list is zero. * * @since 1.3 */ public static List<LocaleCode> getByCountry(String country) { return getByCountry(country, true); }
/** * Get a list of {@code LocaleCode} instances whose country matches the given one. * * <p> * This method is an alias of {@link #getByCountry(String, boolean) * getByCountry}{@code (country, true)}. * Note that the behavior has changed since the version 1.13. In the older versions, * this method was an alias of {@code getByCountry(country, false)}. * </p> * * @param country * Country code. ISO 3166-1 alpha-2 or alpha-3. * * @return * List of {@code LocaleCode} instances. If there is no {@code LocaleCode} * instance whose country matches the given one, the size of the returned * list is zero. * * @since 1.3 */ public static List<LocaleCode> getByCountry(String country) { return getByCountry(country, true); }
/** * Get a list of {@code LocaleCode} instances whose country matches the given one. * * <p> * This method is an alias of {@link #getByCountry(CountryCode) * getByCountry}{@code (}{@link CountryCode}{@code .}{@link * CountryCode#getByCode(String, boolean) getByCode}{@code * (country, caseSensitive))}. * </p> * * @param country * Country code. ISO 3166-1 alpha-2 or alpha-3. * * @param caseSensitive * If {@code true}, the given code should consist of uppercase letters only. * If {@code false}, case is ignored. * * @return * List of {@code LocaleCode} instances. If there is no {@code LocaleCode} * instance whose country matches the given one, the size of the returned * list is zero. * * @since 1.3 */ public static List<LocaleCode> getByCountry(String country, boolean caseSensitive) { return getByCountry(CountryCode.getByCode(country, caseSensitive)); }
/** * Get a list of {@code LocaleCode} instances whose country matches the given one. * * <p> * This method is an alias of {@link #getByCountry(CountryCode) * getByCountry}{@code (}{@link CountryCode}{@code .}{@link * CountryCode#getByCode(String, boolean) getByCode}{@code * (country, caseSensitive))}. * </p> * * @param country * Country code. ISO 3166-1 alpha-2 or alpha-3. * * @param caseSensitive * If {@code true}, the given code should consist of uppercase letters only. * If {@code false}, case is ignored. * * @return * List of {@code LocaleCode} instances. If there is no {@code LocaleCode} * instance whose country matches the given one, the size of the returned * list is zero. * * @since 1.3 */ public static List<LocaleCode> getByCountry(String country, boolean caseSensitive) { return getByCountry(CountryCode.getByCode(country, caseSensitive)); }