org.joda.time.tz
Class DefaultNameProvider
java.lang.Object
org.joda.time.tz.DefaultNameProvider
- All Implemented Interfaces:
- NameProvider
public class DefaultNameProvider
- extends Object
- implements NameProvider
The default name provider acquires localized names from
java.text.DateFormatSymbols
.
DefaultNameProvider is thread-safe and immutable.
- Since:
- 1.0
- Author:
- Brian S O'Neill
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultNameProvider
public DefaultNameProvider()
getShortName
public String getShortName(Locale locale,
String id,
String nameKey)
- Description copied from interface:
NameProvider
- Returns a localized short name, or null if not found.
- Specified by:
getShortName
in interface NameProvider
- Parameters:
locale
- locale to use for selecting name setid
- time zone idnameKey
- time zone name key
getName
public String getName(Locale locale,
String id,
String nameKey)
- Description copied from interface:
NameProvider
- Returns a localized name, or null if not found.
- Specified by:
getName
in interface NameProvider
- Parameters:
locale
- locale to use for selecting name setid
- time zone idnameKey
- time zone name key
Copyright © 2002-2013 Joda.org. All Rights Reserved.