|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.LocaleUtils
public final class LocaleUtils
utility methods for working with Locales.
| Nested Class Summary | |
|---|---|
static class |
LocaleUtils.LocaleComparator
Comparator comparing locales by their String representations. |
| Method Summary | |
|---|---|
static java.util.Locale |
localeFromString(java.lang.String l)
builds a Locale from the String returned by
Locale.toString(). |
static boolean |
matches(java.util.Locale source,
java.util.Locale target)
matches the source Locale to the target Locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Locale localeFromString(java.lang.String l)
Locale from the String returned by
Locale.toString().
l - the locale string
Locale or null, if no
Locale could be built from the given
String
public static boolean matches(java.util.Locale source,
java.util.Locale target)
Locale to the target Locale.
The source matches the target, if it is a subset of the target's attributes.
source - the locale to checktarget - the locale to check against.
true, if the locale matches the given language,
country and variant
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||