@Override public Set<CurrencyUnit> getCurrencies(CurrencyQuery currencyQuery) { Set<CurrencyUnit> result = new HashSet<>(1); for (String cur : currencyQuery.getCurrencyCodes()) { if (cur.endsWith("_test")) { result.add(new TestCurrencyUnit(cur)); } } for (Locale country : currencyQuery.getCountries()) { if ("test".equals(country.getVariant())) { result.add(new TestCurrencyUnit(country.toString())); } } return result; } }
if (!currencyQuery.getCountries().isEmpty()) { for (Locale locale : currencyQuery.getCountries()) { CurrencyUnit cu = CURRENCY_UNITS_BY_LOCALE.get(locale); if (cu != null) {
if(!currencyQuery.getCountries().isEmpty()) { for (Locale country : currencyQuery.getCountries()) { CurrencyUnit cu = getCurrencyUnit(country); if (cu != null) {