Package de.xima.fc.common.utils
Interface XLocaleUtils.LocaleMatcher
- 
- Enclosing class:
 - XLocaleUtils
 
public static interface XLocaleUtils.LocaleMatcher extends Predicate<Locale>
A predicate on a locale.- Since:
 - 8.2.0
 
 
- 
- 
Method Summary
Static Methods Modifier and Type Method Description static 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 Detail
- 
localeMatchBaseLanguage
static XLocaleUtils.LocaleMatcher localeMatchBaseLanguage(Locale locale)
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
static XLocaleUtils.LocaleMatcher localeMatchExact(Locale locale)
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.
 
 
 - 
 
 -