Package org.apache.maven.doxia.tools
Class ReportComparator
- java.lang.Object
-
- org.apache.maven.doxia.tools.ReportComparator
-
- All Implemented Interfaces:
Comparator<org.apache.maven.reporting.MavenReport>
public class ReportComparator extends Object implements Comparator<org.apache.maven.reporting.MavenReport>
Sorts reports.- Author:
- Brett Porter TODO move to reporting API? TODO allow reports to define their order in some other way?
-
-
Constructor Summary
Constructors Constructor Description ReportComparator(Locale locale)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(org.apache.maven.reporting.MavenReport r1, org.apache.maven.reporting.MavenReport 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
-
-
-
-
Constructor Detail
-
ReportComparator
public ReportComparator(Locale locale)
Default constructor.- Parameters:
locale
- not null
-
-
Method Detail
-
compare
public int compare(org.apache.maven.reporting.MavenReport r1, org.apache.maven.reporting.MavenReport r2)
- Specified by:
compare
in interfaceComparator<org.apache.maven.reporting.MavenReport>
-
-