mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 22:45:21 +01:00
Merge pull request #5748 from jmacxx/fix_sepa_eu_countries_comparator
Fix logic of SEPA country comparison routine
This commit is contained in:
commit
596e819629
1 changed files with 1 additions and 2 deletions
|
@ -84,9 +84,8 @@ public class CountryUtil {
|
|||
}
|
||||
|
||||
public static boolean containsAllSepaEuroCountries(List<String> countryCodesToCompare) {
|
||||
countryCodesToCompare.sort(String::compareTo);
|
||||
List<String> countryCodesBase = getAllSepaEuroCountries().stream().map(c -> c.code).collect(Collectors.toList());
|
||||
return countryCodesToCompare.toString().equals(countryCodesBase.toString());
|
||||
return countryCodesToCompare.containsAll(countryCodesBase) && countryCodesBase.containsAll(countryCodesToCompare);
|
||||
}
|
||||
|
||||
public static boolean containsAllSepaInstantEuroCountries(List<String> countryCodesToCompare) {
|
||||
|
|
Loading…
Add table
Reference in a new issue