public class DefaultNameProvider extends Object implements NameProvider
java.text.DateFormatSymbols
.
DefaultNameProvider is thread-safe and immutable.
Constructor and Description |
---|
DefaultNameProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getName(Locale locale,
String id,
String nameKey)
Returns a localized name, or null if not found.
|
String |
getName(Locale locale,
String id,
String nameKey,
boolean standardTime) |
String |
getShortName(Locale locale,
String id,
String nameKey)
Returns a localized short name, or null if not found.
|
String |
getShortName(Locale locale,
String id,
String nameKey,
boolean standardTime) |
public String getShortName(Locale locale, String id, String nameKey)
NameProvider
getShortName
in interface NameProvider
locale
- locale to use for selecting name setid
- time zone idnameKey
- time zone name keypublic String getName(Locale locale, String id, String nameKey)
NameProvider
getName
in interface NameProvider
locale
- locale to use for selecting name setid
- time zone idnameKey
- time zone name keypublic String getShortName(Locale locale, String id, String nameKey, boolean standardTime)
Copyright © 2002–2024 Joda.org. All rights reserved.