|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.i18n.server.GwtLocaleFactoryImpl
public class GwtLocaleFactoryImpl
Creates server-side GwtLocale instances. Thread-safe.
Constructor Summary | |
---|---|
GwtLocaleFactoryImpl()
|
Method Summary | |
---|---|
void |
clear()
Clear an embedded cache of instances when they are no longer needed. |
GwtLocale |
fromComponents(java.lang.String language,
java.lang.String script,
java.lang.String region,
java.lang.String variant)
Construct a GWT locale from its component parts. |
GwtLocale |
fromString(java.lang.String localeName)
Get a GWT locale from a string conforming to a subset of BCP47 (specifically assuming extension tags are not present, at most one variant is present, and grandfathered tags are not supported; also private-use tags are only supported for the entire tag). |
GwtLocale |
getDefault()
Returns an instance of the default locale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GwtLocaleFactoryImpl()
Method Detail |
---|
public void clear()
Note that GwtLocale instances constructed after this is called will not maintain identity with instances constructed before this call.
public GwtLocale fromComponents(java.lang.String language, java.lang.String script, java.lang.String region, java.lang.String variant)
GwtLocaleFactory
fromComponents
in interface GwtLocaleFactory
public GwtLocale fromString(java.lang.String localeName)
GwtLocaleFactory
fromString
in interface GwtLocaleFactory
java.lang.IllegalArgumentException
- if the supplied locale does not match
BCP47 structural requirements.public GwtLocale getDefault()
GwtLocaleFactory
getDefault
in interface GwtLocaleFactory
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |