| java.lang.Object org.cojen.util.PatternMatcher
PatternMatcher | abstract public class PatternMatcher (Code) | | Provides fast matching of strings against patterns containing wildcards.
An ordinary map must be supplied in order to create a PatternMatcher. The
map keys must be strings. Asterisks (*) are treated as wildcard characters.
author: Brian S O'Neill |
Inner Class :public static class Result | |
PatternMatcher | protected PatternMatcher(Object[] values)(Code) | | |
addMatchResult | protected static boolean addMatchResult(int limit, List results, String pattern, Object value, int[] positions, int len)(Code) | | |
fillMatchResults | abstract protected void fillMatchResults(char[] lookup, int limit, List results)(Code) | | |
getMatch | public Result getMatch(String lookup)(Code) | | Returns null if no match.
|
getMatches | public Result[] getMatches(String lookup, int limit)(Code) | | Returns an empty array if no matches.
Parameters: limit - maximum number of results to return |
|
|