/** * Get a list of {@code CurrencyCode} instances whose country * list contains the specified country. * * <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 CurrencyCode} instances. If there is no * {@code CurrencyCode} instance whose country list contains * the specified country, the size of the returned list is zero. * * @since 1.13 */ public static List<CurrencyCode> getByCountryIgnoreCase(String country) { return getByCountry(country, false); }
/** * Get a list of {@code CurrencyCode} instances whose country * list contains the specified country. * * <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 CurrencyCode} instances. If there is no * {@code CurrencyCode} instance whose country list contains * the specified country, the size of the returned list is zero. * * @since 1.13 */ public static List<CurrencyCode> getByCountryIgnoreCase(String country) { return getByCountry(country, false); }
/** * Get a list of {@code CurrencyCode} instances whose country * list contains the specified country. * * <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(code, false)}. * </p> * * @param country * Country code. ISO 3166-1 alpha-2 or alpha-3. * * @return * List of {@code CurrencyCode} instances. If there is no * {@code CurrencyCode} instance whose country list contains * the specified country, the size of the returned list is zero. */ public static List<CurrencyCode> getByCountry(String country) { return getByCountry(country, true); }
/** * Get a list of {@code CurrencyCode} instances whose country * list contains the specified country. * * <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(code, false)}. * </p> * * @param country * Country code. ISO 3166-1 alpha-2 or alpha-3. * * @return * List of {@code CurrencyCode} instances. If there is no * {@code CurrencyCode} instance whose country list contains * the specified country, the size of the returned list is zero. */ public static List<CurrencyCode> getByCountry(String country) { return getByCountry(country, true); }
/** * Get a list of {@code CurrencyCode} instances whose country * list contains the specified country. * * <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 CurrencyCode} instances. If there is no * {@code CurrencyCode} instance whose country list contains * the specified country, the size of the returned list is zero. */ public static List<CurrencyCode> getByCountry(String country, boolean caseSensitive) { return getByCountry(CountryCode.getByCode(country, caseSensitive)); }
/** * Get a list of {@code CurrencyCode} instances whose country * list contains the specified country. * * <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 CurrencyCode} instances. If there is no * {@code CurrencyCode} instance whose country list contains * the specified country, the size of the returned list is zero. */ public static List<CurrencyCode> getByCountry(String country, boolean caseSensitive) { return getByCountry(CountryCode.getByCode(country, caseSensitive)); }