public class CurrentLocale
extends java.lang.Object
Constructor and Description |
---|
CurrentLocale() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clears the locale for the current thread.
|
static java.util.Locale |
get()
Gets the locale from the current thread.
|
static boolean |
isSet()
Returns true iff a thread-local locale is specified
on the current thread.
|
static void |
set(java.util.Locale locale)
Sets the locale for the current thread.
|
public static void set(java.util.Locale locale)
locale
- The locale to use.public static void clear()
public static java.util.Locale get()
Locale.getDefault
if
no locale is specified.public static boolean isSet()