Class 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:
    1. Source file name
    2. Begin line
    3. Description
    4. Begin column
    5. End line
    6. End column
    7. Rule name
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong