Package org.languagetool.rules
Class SameRuleGroupFilter
java.lang.Object
org.languagetool.rules.SameRuleGroupFilter
- All Implemented Interfaces:
RuleMatchFilter
Filter rule matches so that only the first match is kept from overlapping
matches with the same rule group (actually: the same id).
- Since:
- 1.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanhaveSameRuleGroup(RuleMatch match, RuleMatch nextMatch) private booleanoverlapAndMatch(RuleMatch match, RuleMatch nextMatch) (package private) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.languagetool.rules.RuleMatchFilter
filter
-
Constructor Details
-
SameRuleGroupFilter
public SameRuleGroupFilter()
-
-
Method Details
-
filter
- Specified by:
filterin interfaceRuleMatchFilter- Parameters:
ruleMatches- list of matches
-
overlapAndMatch
-
overlaps
-
haveSameRuleGroup
-