|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.analysis.CounterComparator
public class CounterComparator
Collection of comparators to compare ICounter
objects by different
criteria.
Field Summary | |
---|---|
static CounterComparator |
COVEREDITEMS
Compares the absolute number of covered items. |
static CounterComparator |
COVEREDRATIO
Compares the ratio of covered items. |
static CounterComparator |
MISSEDITEMS
Compares the absolute number of missed items. |
static CounterComparator |
MISSEDRATIO
Compares the ratio of missed items. |
static CounterComparator |
TOTALITEMS
Compares the absolute number of total items. |
Method Summary | |
---|---|
int |
compare(ICounter c1,
ICounter c2)
|
NodeComparator |
on(ICoverageNode.CounterEntity entity)
Creates a new comparator for ICoverageNode counters of the given
entity based on this counter sorting criteria. |
CounterComparator |
reverse()
Creates a new version of this comparator that sorts in reverse order. |
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 |
---|
public static final CounterComparator TOTALITEMS
public static final CounterComparator COVEREDITEMS
public static final CounterComparator MISSEDITEMS
public static final CounterComparator COVEREDRATIO
public static final CounterComparator MISSEDRATIO
Method Detail |
---|
public int compare(ICounter c1, ICounter c2)
compare
in interface Comparator<ICounter>
public CounterComparator reverse()
public NodeComparator on(ICoverageNode.CounterEntity entity)
ICoverageNode
counters of the given
entity based on this counter sorting criteria.
entity
- counter entity to sort on
ICoverageNode
elements
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |