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 boolean
haveSameRuleGroup
(RuleMatch match, RuleMatch nextMatch) private boolean
overlapAndMatch
(RuleMatch match, RuleMatch nextMatch) (package private) boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.languagetool.rules.RuleMatchFilter
filter
-
Constructor Details
-
SameRuleGroupFilter
public SameRuleGroupFilter()
-
-
Method Details
-
filter
- Specified by:
filter
in interfaceRuleMatchFilter
- Parameters:
ruleMatches
- list of matches
-
overlapAndMatch
-
overlaps
-
haveSameRuleGroup
-