Interface CountryCodeConverter
public interface CountryCodeConverter
Service to convert country codes into various formats.
This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
-
Method Summary
Modifier and TypeMethodDescriptionconvertFipsToIso3(String fipsCountryCode) Converts FIPS 10-4 into ISO 3166-1 alpha 3.convertIso3ToFips(String iso3alphaCountryCode) Converts ISO 3166-1 alpha 3 into FIPS 10-4.
-
Method Details
-
convertFipsToIso3
Converts FIPS 10-4 into ISO 3166-1 alpha 3. If a FIPS 10-4 code maps to more than one ISO 3166-1 alpha 3 code, all of them will be returned in a list of strings.- Parameters:
fipsCountryCode- a FIPS 10-4 country code- Returns:
- an ISO 3166-1 alpha-3 country code in a List
or an empty list if there isn't a valid conversion.
-
convertIso3ToFips
Converts ISO 3166-1 alpha 3 into FIPS 10-4. If an ISO 3166-1 alpha 3 code maps to more than one FIPS 10-4 code, all of them will be returned in a list of strings.- Parameters:
iso3alphaCountryCode- an ISO 3166 alpha 3 country code- Returns:
- an ISO 3166-1 country code in a List
or an empty list if there isn't a valid conversion.
-