Class CountryValidator
- java.lang.Object
-
- app.coronawarn.server.common.persistence.domain.validation.CountryValidator
-
public class CountryValidator extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisValidCountryCode(String country)Checks if the provided country code is a valid ISO country code.static booleanisValidCountryCodes(Set<String> countries)Checks if the provided country codes are valid ISO country codes.
-
-
-
Method Detail
-
isValidCountryCode
public static boolean isValidCountryCode(String country)
Checks if the provided country code is a valid ISO country code.- Parameters:
country- Country code of the diagnosis key- Returns:
- true if the country code is valid
-
-