public class CounterComparator extends Object implements Comparator<ICounter>, Serializable
ICounter
objects by different
criteria.Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
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
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 onICoverageNode
elementsCopyright © 2013. All Rights Reserved.