public class NodeComparator extends Object implements Comparator<ICoverageNode>, Serializable
ICoverageNode
objects by different counter
criteria.Modifier and Type | Method and Description |
---|---|
int |
compare(ICoverageNode n1,
ICoverageNode n2) |
NodeComparator |
second(Comparator<ICoverageNode> second)
Creates a new composite comparator with a second search criterion.
|
<T extends ICoverageNode> |
sort(Collection<T> summaries)
Returns a sorted copy of the given collection of
ICoverageNode
elements. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public NodeComparator second(Comparator<ICoverageNode> second)
second
- second criterion comparatorpublic <T extends ICoverageNode> List<T> sort(Collection<T> summaries)
ICoverageNode
elements.T
- actual type of the elementssummaries
- collection to create a copy ofpublic int compare(ICoverageNode n1, ICoverageNode n2)
compare
in interface Comparator<ICoverageNode>
Copyright © 2018. All rights reserved.