public abstract class DefaultLocalizedNamesBase extends java.lang.Object implements LocalizedNames
DefaultLocalizedNames, used just to isolate all
 hand-written code here from all generated code.| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.String[] | likelyRegionCodes | 
| protected java.util.Map<java.lang.String,java.lang.String> | namesMap | 
| protected java.lang.String[] | sortedRegionCodes | 
| Constructor and Description | 
|---|
| DefaultLocalizedNamesBase() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String[] | getLikelyRegionCodes() | 
| java.lang.String | getRegionName(java.lang.String regionCode)Get the localized name of a given region in this locale. | 
| protected java.lang.String | getRegionNameImpl(java.lang.String regionCode) | 
| java.lang.String[] | getSortedRegionCodes() | 
| protected java.lang.String[] | loadLikelyRegionCodes()Returns a possibly-empty array of country codes, ordered by the literate
 population speaking this language. | 
| protected void | loadNameMap()Initializes { namesMapto a map of region code (including
 non-country codes) to localized names. | 
| protected abstract java.lang.String[] | loadSortedRegionCodes()Returns an array of currently valid country codes ordered by the collating
 order of the locale. | 
| protected boolean | needsNameMap() | 
protected java.lang.String[] likelyRegionCodes
protected java.lang.String[] sortedRegionCodes
protected java.util.Map<java.lang.String,java.lang.String> namesMap
public final java.lang.String[] getLikelyRegionCodes()
getLikelyRegionCodes in interface LocalizedNamespublic final java.lang.String getRegionName(java.lang.String regionCode)
LocalizedNamesgetRegionName in interface LocalizedNamespublic final java.lang.String[] getSortedRegionCodes()
getSortedRegionCodes in interface LocalizedNamesprotected java.lang.String getRegionNameImpl(java.lang.String regionCode)
protected java.lang.String[] loadLikelyRegionCodes()
protected void loadNameMap()
namesMap to a map of region code (including
 non-country codes) to localized names. Subclasses should generally call the
 parent implementation and then change specific entries, though if most
 entries are being changed they can just create their own map.protected abstract java.lang.String[] loadSortedRegionCodes()
protected boolean needsNameMap()