(EquipNode other)
| 199 | } |
| 200 | |
| 201 | @Override |
| 202 | public int compareTo(EquipNode other) |
| 203 | { |
| 204 | String orderThis = getOrder(this); |
| 205 | String orderOther = getOrder(other); |
| 206 | |
| 207 | if (!orderThis.equals(orderOther)) |
| 208 | { |
| 209 | return orderThis.compareTo(orderOther); |
| 210 | } |
| 211 | if ((getIdPath() != null) && (other.getIdPath() != null)) |
| 212 | { |
| 213 | return idPath.compareTo(other.idPath); |
| 214 | } |
| 215 | return getSortKey().compareTo(other.getSortKey()); |
| 216 | } |
| 217 | |
| 218 | /** |
| 219 | * Retrieve the order of the node, that is the top level |
no test coverage detected