CurrentThreadSettings

Inheritance: java.lang.Object

public class CurrentThreadSettings

Auxiliary class that allows to define default Locale for current thread

Constructors

ConstructorDescription
CurrentThreadSettings()

Methods

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

CurrentThreadSettings()

public CurrentThreadSettings()

getLocale()

public static final Locale getLocale()

Returns default Locale for current thread.

Returns: java.util.Locale - Current Locale

setLocale(Locale locale)

public static final void setLocale(Locale locale)

Sets default Locale for current thread.

Parameters:

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

setLocale(String localeName)

public static final void setLocale(String localeName)

Sets default Locale for current thread.

Parameters:

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