/** * 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); }
/** * Creates a new column that is based on the {@link ICounter} for the given * entity. * * @param entity * counter entity for visualization * @param locale * locale for rendering numbers */ public BarColumn(final CounterEntity entity, final Locale locale) { this.entity = entity; this.integerFormat = DecimalFormat.getIntegerInstance(locale); this.comparator = new TableItemComparator(CounterComparator.MISSEDITEMS .reverse().on(entity) .second(CounterComparator.TOTALITEMS.reverse().on(entity))); }