private int pos(final RouteItem item) {
        if (segments == null || segments.isEmpty()) {
            return -1;
        }
        final String identifier = item.getIdentifier();
        for (int i = 0; i < segments.size(); i++) {
            if (segments.get(i).getItem().getIdentifier().equals(identifier)) {
                return i;
            }
        }
        return -1;
    }
@param item item to be added or removed
@return ToggleItemState
main/src/main/java/cgeo/geocaching/models/IndividualRoute.java