Cloudsim: return confusion
问题 This function is my sample function. this function Sort a given list of VMs by descending order of CPU utilization. public static <T extends Vm> void sortByCpuUtilization(List<T> vmList) { Collections.sort(vmList, new Comparator<T>() { @Override public int compare(T a, T b) throws ClassCastException { Double aUtilization = a.getTotalUtilizationOfCpuMips(CloudSim.clock()); Double bUtilization = b.getTotalUtilizationOfCpuMips(CloudSim.clock()); return bUtilization.compareTo(aUtilization); } });