MCPcopy Create free account
hub / github.com/SimHacker/micropolis / compare

Method compare

micropolis-java/src/micropolisj/engine/CityEval.java:138–140  ·  view source on GitHub ↗
(CityProblem a, CityProblem b)

Source from the content-addressed store, hash-verified

136 CityProblem [] probOrder = CityProblem.values();
137 Arrays.sort(probOrder, new Comparator<CityProblem>() {
138 public int compare(CityProblem a, CityProblem b) {
139 return -(problemVotes.get(a).compareTo(problemVotes.get(b)));
140 }});
141
142 int c = 0;
143 while (c < probOrder.length &&

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected