public class GwtLocaleFactoryImpl extends Object implements org.gwtproject.i18n.shared.GwtLocaleFactory
| Constructor and Description |
|---|
GwtLocaleFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear an embedded cache of instances when they are no longer needed.
|
org.gwtproject.i18n.shared.GwtLocale |
fromComponents(String language,
String script,
String region,
String variant) |
org.gwtproject.i18n.shared.GwtLocale |
fromString(String localeName) |
org.gwtproject.i18n.shared.GwtLocale |
getDefault() |
public void clear()
Note that GwtLocale instances constructed after this is called will not maintain identity with instances constructed before this call.
public org.gwtproject.i18n.shared.GwtLocale fromComponents(String language, String script, String region, String variant)
fromComponents in interface org.gwtproject.i18n.shared.GwtLocaleFactorypublic org.gwtproject.i18n.shared.GwtLocale fromString(String localeName)
fromString in interface org.gwtproject.i18n.shared.GwtLocaleFactoryIllegalArgumentException - if the supplied locale does not match BCP47 structural
requirements.public org.gwtproject.i18n.shared.GwtLocale getDefault()
getDefault in interface org.gwtproject.i18n.shared.GwtLocaleFactoryCopyright © 2018–2020. All rights reserved.