Class CountryValidator


  • public class CountryValidator
    extends Object
    • 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
      • isValidCountryCodes

        public static boolean isValidCountryCodes​(Set<String> countries)
        Checks if the provided country codes are valid ISO country codes.
        Parameters:
        countries - Visited Country codes of the diagnosis key
        Returns:
        true if the country codes are valid