net.sourceforge.pmd
Class RuleViolationComparator

java.lang.Object
  extended by net.sourceforge.pmd.RuleViolationComparator
All Implemented Interfaces:
Comparator<RuleViolation>

public final class RuleViolationComparator
extends Object
implements Comparator<RuleViolation>

Compares RuleViolations using the following criteria:

  1. Source file name
  2. Begin line
  3. Description
  4. Begin column
  5. End line
  6. End column
  7. Rule name


Field Summary
static RuleViolationComparator INSTANCE
           
 
Method Summary
 int compare(RuleViolation r1, RuleViolation r2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

INSTANCE

public static final RuleViolationComparator INSTANCE
Method Detail

compare

public int compare(RuleViolation r1,
                   RuleViolation r2)
Specified by:
compare in interface Comparator<RuleViolation>


Copyright © 2002-2015 InfoEther. All Rights Reserved.