Package net.sourceforge.pmd
Class RuleViolationComparator
- java.lang.Object
-
- net.sourceforge.pmd.RuleViolationComparator
-
- All Implemented Interfaces:
java.util.Comparator<RuleViolation>
public final class RuleViolationComparator extends java.lang.Object implements java.util.Comparator<RuleViolation>
Compares RuleViolations using the following criteria:- Source file name
- Begin line
- Description
- Begin column
- End line
- End column
- Rule name
-
-
Field Summary
Fields Modifier and Type Field Description static RuleViolationComparator
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(RuleViolation r1, RuleViolation r2)
-
-
-
Field Detail
-
INSTANCE
public static final RuleViolationComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(RuleViolation r1, RuleViolation r2)
- Specified by:
compare
in interfacejava.util.Comparator<RuleViolation>
-
-