java.io.Serializable
, java.util.Comparator<ICounter>
public class CounterComparator extends java.lang.Object implements java.util.Comparator<ICounter>, java.io.Serializable
ICounter
objects by different
criteria.Modifier and Type | Field | 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 | 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.
|
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 java.util.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 © 2018. All rights reserved.