public interface GwtLocaleFactory
| Modifier and Type | Method and Description |
|---|---|
GwtLocale |
fromComponents(String language,
String script,
String region,
String variant)
Construct a GWT locale from its component parts.
|
GwtLocale |
fromString(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.
|
GwtLocale fromComponents(String language, String script, String region, String variant)
Null or empty strings are accepted for parts not present.
language - script - region - variant - GwtLocale fromString(String localeName)
A null or empty string is treated as the default locale.
localeName - GwtLocale getDefault()
Copyright © 2018–2020. All rights reserved.