Top Description Fields Constructors Methods
java.time.format

pack-priv Class ZoneName

extends Object
Class Inheritance
Imports
java.util.HashMap, .Locale, .Map

A helper class to map a zone name to metazone and back to the appropriate zone id for the particular locale.

The zid<->metazone mappings are based on CLDR metaZones.xml. The alias mappings are based on Link entries in tzdb data files and CLDR's supplementalMetadata.xml.

Field Summary

Modifier and TypeField and Description
private static final Map<String, String>
private static final String[]
private static final String[]
private static final Map<String, String>
private static final Map<String, Map<String, String>>
private static final String[]
private static final Map<String, String>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static String
toZid(String zid, Locale locale)

public static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aliasesback to summary
private static final Map<String, String> aliases
aliasMapback to summary
private static final String[] aliasMap
mzoneMapback to summary
private static final String[] mzoneMap
mzoneToZidback to summary
private static final Map<String, String> mzoneToZid
mzoneToZidLback to summary
private static final Map<String, Map<String, String>> mzoneToZidL
zidMapback to summary
private static final String[] zidMap
zidToMzoneback to summary
private static final Map<String, String> zidToMzone

Constructor Detail

ZoneNameback to summary
pack-priv ZoneName()

Method Detail

toZidback to summary
public static String toZid(String zid, Locale locale)
toZidback to summary
public static String toZid(String zid)