Package io.keikai.model.util
Class Locales
java.lang.Object
io.keikai.model.util.Locales
Thread-local locale management.
Replaces org.zkoss.util.Locales to eliminate ZK dependency.
- Since:
- 7.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocaleReturns the thread-local locale, or the default locale if not set.static LocalesetThreadLocal(Locale locale) Sets the thread-local locale and returns the previous one.
-
Constructor Details
-
Locales
public Locales()
-
-
Method Details
-
setThreadLocal
Sets the thread-local locale and returns the previous one. -
getCurrent
Returns the thread-local locale, or the default locale if not set.
-