/** * Classify the input by matching it against the patterns provided in * {@link #setPatternMap(Map)}. The most specific pattern that matches will * be used to locate a value. * * @return the value matching the most specific pattern possible * * @throws IllegalStateException if no matching value is found. */ public T classify(String classifiable) { T value = values.match(classifiable); return value; }
if (PatternMatcher.match(key, line)) { value = map.get(key); break;
/** * Classify the input by matching it against the patterns provided in * {@link #setPatternMap(Map)}. The most specific pattern that matches will * be used to locate a value. * * @return the value matching the most specific pattern possible * * @throws IllegalStateException if no matching value is found. */ public T classify(String classifiable) { T value = values.match(classifiable); return value; }
if (PatternMatcher.match(key, line)) { value = map.get(key); break;