RutaBlock parent, RutaStream stream, InferenceCrowd crowd) {
int minValue = min.getIntegerValue(parent, null, stream);
int maxValue = max.getIntegerValue(parent, null, stream);
if (matches.size() > 0) {
RuleElementMatch ruleElementMatch = matches.get(matches.size() - 1);
if (!ruleElementMatch.matched()) {
matches.remove(ruleElementMatch);
}
}
int matchedSize = matches.size();
boolean result = matchedSize >= minValue && matchedSize <= maxValue;