org.openbakery.simulators.SimulatorRuntimeComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xcode-plugin Show documentation
Show all versions of xcode-plugin Show documentation
XCode-Plugin is a plugin to allow custom XCode projects to build as generated by CMake
The newest version!
package org.openbakery.simulators;
import java.util.Comparator;
public class SimulatorRuntimeComparator implements Comparator {
@Override
public int compare(SimulatorRuntime first, SimulatorRuntime second) {
int result = first.getType().getValue().compareTo(second.getType().getValue());
if (result != 0) {
return result;
}
return second.getVersion().compareTo(first.getVersion());
}
}