use of org.apache.commons.lang3.mutable.MutableInt in project apex-malhar by apache.
the class AbstractStreamPatternMatcher method setPattern.
/**
* Set the pattern that needs to be searched in the input stream of events
*
* @param pattern The pattern to be searched
*/
public void setPattern(Pattern<T> pattern) {
this.pattern = pattern;
partialMatches.clear();
patternLength = new MutableInt(pattern.getStates().length - 1);
}
Aggregations