APIdia Launch Partner
Top Fields Constructors Methods
java.util

pack-priv Class LocaleISOData

extends Object
Class Inheritance
Imports
java.util.function.Supplier

Field Summary

Modifier and TypeField and Description
private static final String[]
ISO3166_3

Array to hold country codes for ISO3166-3.

pack-priv static final LazyConstant<String[]>
pack-priv static final LazyConstant<Set<String>>
pack-priv static final LazyConstant<Set<String>>
pack-priv static final LazyConstant<String[]>
private static final String
isoCountryTable

The 2- and 3-letter ISO 3166 country codes.

private static final String
isoLanguageTable

The 2- and 3-letter ISO 639 language codes.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static Set<String>
computeISO3166_1Alpha3Countries()

This method computes a set of ISO3166-1 alpha-3 country codes from existing isoCountryTable.

private static String[]
getISO2Table(String table)

This method computes an array of alpha-2 codes from either ISO639 or ISO3166.

private static String
getISO3Code(String iso2Code, String table)

pack-priv static String
pack-priv static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ISO3166_3back to summary
private static final String[] ISO3166_3

Array to hold country codes for ISO3166-3.

ISO_3166_1_ALPHA2back to summary
pack-priv static final LazyConstant<String[]> ISO_3166_1_ALPHA2
ISO_3166_1_ALPHA3back to summary
pack-priv static final LazyConstant<Set<String>> ISO_3166_1_ALPHA3
ISO_3166_3back to summary
pack-priv static final LazyConstant<Set<String>> ISO_3166_3
ISO_639back to summary
pack-priv static final LazyConstant<String[]> ISO_639
isoCountryTableback to summary
private static final String isoCountryTable

The 2- and 3-letter ISO 3166 country codes.

isoLanguageTableback to summary
private static final String isoLanguageTable

The 2- and 3-letter ISO 639 language codes.

Constructor Detail

LocaleISODataback to summary
private LocaleISOData()

Method Detail

computeISO3166_1Alpha3Countriesback to summary
private static Set<String> computeISO3166_1Alpha3Countries()

This method computes a set of ISO3166-1 alpha-3 country codes from existing isoCountryTable.

getISO2Tableback to summary
private static String[] getISO2Table(String table)

This method computes an array of alpha-2 codes from either ISO639 or ISO3166.

getISO3Codeback to summary
private static String getISO3Code(String iso2Code, String table)
getISO3CtryCodeback to summary
pack-priv static String getISO3CtryCode(String country)
getISO3LangCodeback to summary
pack-priv static String getISO3LangCode(String language)