Interface XLocaleUtils.LocaleMatcher
- Enclosing class:
XLocaleUtils
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic XLocaleUtils.LocaleMatcherlocaleMatchBaseLanguage(Locale locale) Gets a locale matcher that matches when a locale has the same base language as the given locale.static XLocaleUtils.LocaleMatcherlocaleMatchExact(Locale locale) Gets a locale matcher that matches when a locale is exactly equal to the given locale.
-
Method Details
-
localeMatchBaseLanguage
Gets a locale matcher that matches when a locale has the same base language as the given locale. Passingnullwill return a matcher that always returns false.- Parameters:
locale- The locale against which to compare.- Returns:
- The locale matcher.
-
localeMatchExact
Gets a locale matcher that matches when a locale is exactly equal to the given locale. Passingnullwill return a matcher that never matches.- Parameters:
locale- The locale against which to compare.- Returns:
- The locale matcher.
-