}
return 0;
}
private int compareRouteTypes(OperationActivityEdge e1, OperationActivityEdge e2) {
AbstractGraphNode to1 = e1.to();
AbstractGraphNode to2 = e2.to();
if (to1 instanceof OperationWrapperNode) {
if (!(to2 instanceof OperationWrapperNode)) {
return -1;
}
} else if (to2 instanceof OperationWrapperNode) {
return 1;
}
int i1 = ArrayUtils.indexOf(routeTypeOrder, e1.getType());
int i2 = ArrayUtils.indexOf(routeTypeOrder, e2.getType());
int ret = i1 - i2;
if (ret == 0) {
ret = to1.toString().compareToIgnoreCase(to2.toString());
}
return ret;
}