ResourceBundle with special
functionality for time zone names. The additional functionality:
getContents
array for the enumeration returned by getKeys.
handleGetObject.
TimeZoneNames resource bundles must extend this
class and implement the getContents method.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected <K, V> Map | createMap(int size)
Overrides sun. Use LinkedHashMap to preserve the order of bundle entries. |
| protected < the type of elements E> Set | Returns: a SetOverrides sun. Use LinkedHashSet to preserve the key order. |
| protected abstract Object[][] | getContents()
Implements abstract sun. Provides key/value mappings for a specific resource bundle. |
| public Object | handleGetObject(String key)
Overrides sun. Maps time zone IDs to locale-specific names. |
| TimeZoneNamesBundle | back to summary |
|---|---|
| public TimeZoneNamesBundle() | |
| createMap | back to summary |
|---|---|
| protected <K, V> Map Overrides sun. Use LinkedHashMap to preserve the order of bundle entries.
| |
| createSet | back to summary |
|---|---|
| protected <E> Set Overrides sun. Use LinkedHashSet to preserve the key order. | |
| getContents | back to summary |
|---|---|
| protected abstract Object[][] getContents() Implements abstract sun. Provides key/value mappings for a specific resource bundle. Each entry of the array returned must be an array with two elements:
| |
| handleGetObject | back to summary |
|---|---|
| public Object handleGetObject(String key) Overrides sun. Maps time zone IDs to locale-specific names. The value returned is an array of five strings:
getContents implementations, while the time zone
ID is inserted into the returned array by this method.
| |