Skip to content

Commit

Permalink
Added function to get all currencies, except the one we want to filte…
Browse files Browse the repository at this point in the history
…r out.
  • Loading branch information
c0dehunter committed May 7, 2020
1 parent cb6d1ad commit 751dffc
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,17 @@ public static List<String> getAllCurrencyCodes() {
return allCurrencyCodes;
}

public static List<String> getAllCurrencyCodes(String excludeSymbol) {
List<String> allCurrencyCodes = new ArrayList<>();

for(ExtendedCurrency extendedCurrency : getAllCurrencies()) {
if(!extendedCurrency.getCode().equals(excludeSymbol))
allCurrencyCodes.add(extendedCurrency.getCode());
}

return allCurrencyCodes;
}

public static List<String> getAllCurrencyCodes(List<String> excludeSymbols) {
List<String> allCurrencyCodes = new ArrayList<>();

Expand Down

0 comments on commit 751dffc

Please sign in to comment.