| 22 | #include "StringUtils.h" |
| 23 | |
| 24 | bool JavaInstall::operator<(const JavaInstall& rhs) const |
| 25 | { |
| 26 | auto archCompare = StringUtils::naturalCompare(arch, rhs.arch, Qt::CaseInsensitive); |
| 27 | if (archCompare != 0) |
| 28 | return archCompare < 0; |
| 29 | if (id < rhs.id) { |
| 30 | return true; |
| 31 | } |
| 32 | if (id > rhs.id) { |
| 33 | return false; |
| 34 | } |
| 35 | return StringUtils::naturalCompare(path, rhs.path, Qt::CaseInsensitive) < 0; |
| 36 | } |
| 37 | |
| 38 | bool JavaInstall::operator==(const JavaInstall& rhs) const |
| 39 | { |
nothing calls this directly
no test coverage detected