/** * Constructor that creates a matcher from a string. * * @param str the string to match, null or empty matches nothing * @return a new Matcher for the given String */ public static StrMatcher stringMatcher(final String str) { if (StringUtils.isEmpty(str)) { return NONE_MATCHER; } return new StringMatcher(str); }
/** * Constructor that creates a matcher from a string. * * @param str the string to match, null or empty matches nothing * @return a new Matcher for the given String */ public static StrMatcher stringMatcher(final String str) { if (StringUtils.isEmpty(str)) { return NONE_MATCHER; } return new StringMatcher(str); }
/** * Constructor that creates a matcher from a string. * * @param str the string to match, null or empty matches nothing * @return a new Matcher for the given String */ public static StrMatcher stringMatcher(final String str) { if (StringUtils.isEmpty(str)) { return NONE_MATCHER; } return new StringMatcher(str); }
/** * Constructor that creates a matcher from a string. * * @param str the string to match, null or empty matches nothing * @return a new Matcher for the given String */ public static StrMatcher stringMatcher(final String str) { if (StringUtils.isEmpty(str)) { return NONE_MATCHER; } return new StringMatcher(str); }