(Device other)
| 181 | } |
| 182 | |
| 183 | public int compareTo(Device other) { |
| 184 | if (type.rank < other.type.rank) { |
| 185 | return -1; |
| 186 | } else if (type.rank > other.type.rank) { |
| 187 | return 1; |
| 188 | } |
| 189 | |
| 190 | if (getDeviceId() < other.getDeviceId()) { |
| 191 | return -1; |
| 192 | } else if (getDeviceId() > other.getDeviceId()) { |
| 193 | return 1; |
| 194 | } |
| 195 | |
| 196 | return 0; |
| 197 | } |
| 198 | } |
nothing calls this directly
no test coverage detected