MCPcopy Create free account
hub / github.com/Whiley/WhileyCompiler / compare

Method compare

src/main/java/wycc/io/HeapWriter.java:177–185  ·  view source on GitHub ↗
(Pair<Integer, Metric> o1, Pair<Integer, Metric> o2)

Source from the content-addressed store, hash-verified

175 Collections.sort(items, new Comparator<Pair<Integer,Metric>>() {
176
177 @Override
178 public int compare(Pair<Integer, Metric> o1, Pair<Integer, Metric> o2) {
179 int c = Integer.compare(o1.second().bytes, o2.second().bytes);
180 if(c == 0) {
181 return o1.first().compareTo(o2.first());
182 } else {
183 return c;
184 }
185 }
186
187 });
188 int total = 0;

Callers 4

compareDataMethod · 0.45
compareToMethod · 0.45
compareToMethod · 0.45
compareToMethod · 0.45

Calls 3

secondMethod · 0.80
firstMethod · 0.80
compareToMethod · 0.45

Tested by 3

compareToMethod · 0.36
compareToMethod · 0.36
compareToMethod · 0.36