/** * Allows the locales which user part matches any of the user parts from a given array. * @param userParts the given array of user parts. * @return this locale filter. */ public LocaleFilter includeUserPart(String ... userParts) { if (Util.isEmpty(userParts)) return this; for (String userPart : userParts) includeUserPart(userPart); return this; }
/** * Helper method. */ private void setUserPart(boolean excludeMode, String userPart) { if (Util.isEmpty(userPart)) return; if (excludeMode) excludeUserPart(userPart); else includeUserPart(userPart); }