public class CountryCodeValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
validate(List<String> countryCodes)
Validates the list of country codes and returns a normalized copy.
|
public static List<String> validate(List<String> countryCodes)
countryCodes - input listNullPointerException - if the list is null or if any ofIllegalArgumentException - any of the items is not an ISO 3166-1 alpha-2 country codeCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.