public static StrMatcher charSetMatcher ( final String chars ) { if ( StringUtils . isEmpty ( chars ) ) { return NONE_MATCHER ; } if ( chars . length ( ) == 1 ) { return new CharMatcher ( chars . charAt ( 0 ) ) ; } return new CharSetMatcher ( chars . toCharArray ( ) ) ; }
Constructor that creates a matcher from a string representing a set of characters .