CurrentThreadSettings

Inheritance: java.lang.Object

public final class CurrentThreadSettings

Auxiliary class that allows to define default Locale for current thread

Deprecated: Please use LocaleOptions instead of CurrentThreadSettings.

Methods

MethodDescription
getLocale()Returns default Locale for current thread.
setLocale(String localeName)Sets default Locale for current thread.
setLocale(Locale locale)Sets default Locale for current thread.

getLocale()

public static Locale getLocale()

Returns default Locale for current thread.

Returns: java.util.Locale - the default Locale for current thread.

setLocale(String localeName)

public static void setLocale(String localeName)

Sets default Locale for current thread.

Parameters:

ParameterTypeDescription
localeNamejava.lang.Stringthe default Locale for current thread.

setLocale(Locale locale)

public static void setLocale(Locale locale)

Sets default Locale for current thread.

Parameters:

ParameterTypeDescription
localejava.util.Localethe default Locale for current thread.