CurrentThreadSettings

Inheritance: java.lang.Object

public class CurrentThreadSettings

Auxiliary class that allows to define default Locale for current thread

Constructors

Constructor Description
CurrentThreadSettings()

Methods

Method Description
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 Locale getLocale()

Returns default Locale for current thread.

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

setLocale(Locale locale)

public static void setLocale(Locale locale)

Sets default Locale for current thread.

Parameters:

Parameter Type Description
locale 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:

Parameter Type Description
localeName java.lang.String the default Locale for current thread.