/** * Return true if the string should be excluded. */ private boolean exclude(String s) { return !CollectionUtils.isEmpty(excludePatterns) && isMatch(s, excludePatterns); }
/** * Return true if the string should be included. */ public boolean include(String s) { if (exclude(s)) { logger.debug("Excluding {}", s); return false; } else { return CollectionUtils.isEmpty(includePatterns) || isMatch(s, includePatterns); } }