/** * Creates a new comparator for {@link ICoverageNode} counters of the given * entity based on this counter sorting criteria. * * @param entity * counter entity to sort on * @return comparator for {@link ICoverageNode} elements */ public NodeComparator on(final CounterEntity entity) { return new NodeComparator(this, entity); }